XMPP JavaScript Library using WebSocket - Documenatation

Download JavaScript XMPP Library

XMPP - How to send your offline status?

Description

Following code shows how to broadcast the you are unavailable

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