XMPP JavaScript Library using WebSocket - Documenatation

Download JavaScript XMPP Library

XMPP - How to send your online status?

Description

Following code shows how to broadcast the you are available

Syntax
xmppClient.presence.available();
Example
xmppClient.presence.available();