powered by Jive Software

Problem with idle client

Hi, i’m developing a xmpp chat using strophe library (Javascript/BOSH).

I have a problem: when a client closes the browser window i should disconnect it from the openfire server. I’ve tried using the openfire property ‘xmpp.client.idle’ but i have no response, the connection is still alive.

I’ve tried calling the strophe disconnect function in the onunload event of the browser with no success.

There is another openfire property to check the client connection? I’m stuck with this.

Any help will be usefull.

Thanks in advance.

I’ve solved this problem through a PHP connection, using a Jabber library.