For a class project I thought I would use XIFF to connect two Flash clients together as in instant messenger. Should be simple enough — I had a working prototype with a similar library by Nick Velloff. So I decided to try to simply write some login code (and get a nice sound on my Pidgen IM client). …
5 hours later, I still can’t get the @%#& thing to work. Finally I stumble upon this forum post where someone else had the same problem. The cause:
XIFF was sending an initialization message:
<?xml version=”1.0″?><stream:stream to=”im.flosoft.biz” xmlns=”jabber:client” xmlns:stream=”http://etherx.jabber.org/streams” version=”1.0″>
My XMPP server (in this case im.flosoft.biz) was expecting:
<?xml version=”1.0″?><stream:stream to=”im.flosoft.biz” xmlns=”jabber:client” xmlns:stream=”http://etherx.jabber.org/streams”>
(missing the version=”1.0″ at the end) And because of this simple omission, the exchange failed. completely. horribly.
Well the solution is simply to edit line 108 in
Hope this helps someone.
UPDATE:
The modified file is: XMPPSocketConnection.as
Hey Nat! neat! Could you please pass me an example of what you’ve done here? Thanks in advace!!!
Sebas.
OK Sebas, I’ve updated the post. Thanks,
Nat