[jdev] Jabberd2, Flash Client and terminator character...

Justin Karneges justin-keyword-jabber.093179 at affinix.com
Sun Apr 11 17:38:58 CDT 2004


On Sunday 11 April 2004 2:45 pm, Johann Romefort wrote:
> Now one question remaining is, what does the Jabber protocol say about
> that? Is terminating
> strings sent back to the client by a null character comes in
> contradiction with the protocol?

Yes, this is definitely wrong.

> Or is terminating the Stanza by a backslash is just a hack and clearly
> not allowed by the protocol.

What do you mean by this?  Self-closing tags are allowed, which is done with a 
forward-slash (like "<message/>"), but maybe this is not what you are talking 
about.

> If this is the case, I can understand your point, and I m sure there is
> some workaround possible
> outside the server (implementing a proxy that do the transformation).
> Otherwise....
> I dont have enought knowledge about the Jabberd2 architecture and
> implementation, but may
> be there is a clean way to do things? Any thoughts?

I think the cleanest way to do this would be to use HTTP & JEP-124.  It works 
with complete XML documents in each exchange, so there is no need to 
workaround Flash XML parser problems.  You'd be using standard protocols.

Also, using HTTP gives you the nice ability to get through tough firewalls.  
Chances are that if the user can reach your Flash application via a web 
browser, then your app can probably reach the Jabber server via HTTP.

There are no implementations of JEP-124 that I am aware of, but if you were 
interested in making some sort of proxy anyway, then you might give it a 
shot.

-Justin



More information about the JDev mailing list