<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: XMPP in your browser: Flex 2 with XIFF</title>
	<atom:link href="http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/</link>
	<description>Solvitas perambulum</description>
	<lastBuildDate>Thu, 29 Jul 2010 06:43:17 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: josé</title>
		<link>http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/comment-page-1/#comment-18554</link>
		<dc:creator>josé</dc:creator>
		<pubDate>Thu, 01 Jul 2010 09:26:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/#comment-18554</guid>
		<description>I connect to server chat.facebook.com but don´t login i try
connection = new XMPPSocketConnection();
				connection.username = &quot;?????&quot;;
				connection.password = &quot;?????&quot;;
				connection.server = &quot;chat.facebook.com&quot;;
				connection.port = 5222;
				
				connection.addEventListener(XIFFErrorEvent.XIFF_ERROR, registerNewUser);
connection.addEventListener(ConnectionSuccessEvent.CONNECT_SUCCESS, connect);
connection.addEventListener(LoginEvent.LOGIN, onLogin);
				
connection.connect(&quot;standard&quot;);

in the handler connect are value true but don´t complet the login...
anyone have ideas...thanks zeze_arcos@hotmail.com</description>
		<content:encoded><![CDATA[<p>I connect to server chat.facebook.com but don´t login i try<br />
connection = new XMPPSocketConnection();<br />
				connection.username = &#8220;?????&#8221;;<br />
				connection.password = &#8220;?????&#8221;;<br />
				connection.server = &#8220;chat.facebook.com&#8221;;<br />
				connection.port = 5222;</p>
<p>				connection.addEventListener(XIFFErrorEvent.XIFF_ERROR, registerNewUser);<br />
connection.addEventListener(ConnectionSuccessEvent.CONNECT_SUCCESS, connect);<br />
connection.addEventListener(LoginEvent.LOGIN, onLogin);</p>
<p>connection.connect(&#8221;standard&#8221;);</p>
<p>in the handler connect are value true but don´t complet the login&#8230;<br />
anyone have ideas&#8230;thanks <a href="mailto:zeze_arcos@hotmail.com">zeze_arcos@hotmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tobe</title>
		<link>http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/comment-page-1/#comment-18447</link>
		<dc:creator>tobe</dc:creator>
		<pubDate>Wed, 07 Apr 2010 18:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/#comment-18447</guid>
		<description>AWESOME! Realise I&#039;m a bit late in the day picking up this forum post, but still wanted say big thanks for the pointers. Really helped me out</description>
		<content:encoded><![CDATA[<p>AWESOME! Realise I&#8217;m a bit late in the day picking up this forum post, but still wanted say big thanks for the pointers. Really helped me out</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Simão</title>
		<link>http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/comment-page-1/#comment-16463</link>
		<dc:creator>Marco Simão</dc:creator>
		<pubDate>Thu, 20 Nov 2008 17:39:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/#comment-16463</guid>
		<description>Hey dude, i came up with this problem and got stucked with no straigth answer on what could preventing my flex app to do this kind of access. So THANK YOU SO MUCH! It helped a LOT. Very well writed article.

About the reconnect, you could use a keepaliveloop to keep connected an prevent reconnect:
/* create and start the keepalive */
keepAlive = new Timer(100000);
keepAlive.addEventListener(TimerEvent.TIMER, onKeepAliveLoop);
keepAlive.start();

/* define handle function */
private function onKeepAliveLoop(evt:TimerEvent):void {
            connection.sendKeepAlive();
            //Alert.show(&quot;keepalive &quot; + getTimer());
        }

This works well for me.</description>
		<content:encoded><![CDATA[<p>Hey dude, i came up with this problem and got stucked with no straigth answer on what could preventing my flex app to do this kind of access. So THANK YOU SO MUCH! It helped a LOT. Very well writed article.</p>
<p>About the reconnect, you could use a keepaliveloop to keep connected an prevent reconnect:<br />
/* create and start the keepalive */<br />
keepAlive = new Timer(100000);<br />
keepAlive.addEventListener(TimerEvent.TIMER, onKeepAliveLoop);<br />
keepAlive.start();</p>
<p>/* define handle function */<br />
private function onKeepAliveLoop(evt:TimerEvent):void {<br />
            connection.sendKeepAlive();<br />
            //Alert.show(&#8221;keepalive &#8221; + getTimer());<br />
        }</p>
<p>This works well for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/comment-page-1/#comment-15387</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Thu, 14 Feb 2008 21:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/#comment-15387</guid>
		<description>Thanks for this information Graham.  I was particularly interested in your auto-reconnect code.  I added it to my error handler and then went into debug mode.

Problem was that I never see (and have never seen) an error code 503 in my app, which would trigger this auto reconnect.

My question is: what triggers a 503 error?  Based on the explanation above I would imagine it to be when the internet connection is interrupted to the client.  However when I unplug my machine from the network no error gets triggered or anything 

So I am trying to figure out what generates the 503, but more importantly, how to reliably auto-reconnect when things go wrong.

[graham]  It&#039;s dispatched in XMPPConnection.as, when it gets an IOError on the underlying socket. It should fire when you unplug your network cable, unless your XMPP server is local! Maybe it sends a DisconnectionEvent instead.</description>
		<content:encoded><![CDATA[<p>Thanks for this information Graham.  I was particularly interested in your auto-reconnect code.  I added it to my error handler and then went into debug mode.</p>
<p>Problem was that I never see (and have never seen) an error code 503 in my app, which would trigger this auto reconnect.</p>
<p>My question is: what triggers a 503 error?  Based on the explanation above I would imagine it to be when the internet connection is interrupted to the client.  However when I unplug my machine from the network no error gets triggered or anything </p>
<p>So I am trying to figure out what generates the 503, but more importantly, how to reliably auto-reconnect when things go wrong.</p>
<p>[graham]  It&#8217;s dispatched in XMPPConnection.as, when it gets an IOError on the underlying socket. It should fire when you unplug your network cable, unless your XMPP server is local! Maybe it sends a DisconnectionEvent instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham King &#187; Technologies for better web based applications: XMPP, Flex, and more</title>
		<link>http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/comment-page-1/#comment-15292</link>
		<dc:creator>Graham King &#187; Technologies for better web based applications: XMPP, Flex, and more</dc:creator>
		<pubDate>Sun, 27 Jan 2008 20:39:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/#comment-15292</guid>
		<description>[...] There is an XMPP library for Flex, called XIFF. I&#8217;ve blogged some documentation about using XIFF. [...]</description>
		<content:encoded><![CDATA[<p>[...] There is an XMPP library for Flex, called XIFF. I&#8217;ve blogged some documentation about using XIFF. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael greene</title>
		<link>http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/comment-page-1/#comment-15266</link>
		<dc:creator>Michael greene</dc:creator>
		<pubDate>Tue, 22 Jan 2008 01:19:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/#comment-15266</guid>
		<description>Thanks Graham, I haven&#039;t tested to make sure your comments helped, but that is a very well-written article on how to set it up and the specific problem I was having -- the security sandbox violation -- is covered right away in the &quot;Permission to connect&quot; section.

And since the other posts on your front page are on Python, Flickr, Gallery2, and unit testing, you have a new subscriber.

Side note:  two + four = six, not 6.</description>
		<content:encoded><![CDATA[<p>Thanks Graham, I haven&#8217;t tested to make sure your comments helped, but that is a very well-written article on how to set it up and the specific problem I was having &#8212; the security sandbox violation &#8212; is covered right away in the &#8220;Permission to connect&#8221; section.</p>
<p>And since the other posts on your front page are on Python, Flickr, Gallery2, and unit testing, you have a new subscriber.</p>
<p>Side note:  two + four = six, not 6.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shunjie</title>
		<link>http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/comment-page-1/#comment-15182</link>
		<dc:creator>shunjie</dc:creator>
		<pubDate>Sat, 05 Jan 2008 23:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/software/xmpp-in-your-browser-flex-2-with-xiff/#comment-15182</guid>
		<description>Thanks, I think thats a very comprehensive list ;)</description>
		<content:encoded><![CDATA[<p>Thanks, I think thats a very comprehensive list ;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
