XMPP JavaScript Library using WebSocket - Documenatation

Download JavaScript XMPP Library

XMPP - How to Send Message?

Description

Following code shows how to send message to another XMPP client using XMPP JavaScript Library

Syntax
xmppClient.sendMessage(message, JID);
Example
xmppClient.sendMessage("Hi, How are you?", "someuser@somedomain.com");