1-1 Chat Example

An example demonstrating how to send and recieve messages between two users.

How it Works

This example automatically performs a number of actions in the page onReady event.
  1. Creating a jabberwerx.Client.
  2. Creating a jabberwerx.ChatController to manage chat sessions and send/receive messages.
  3. Registering for jabberwerx.ChatSession Events to handle messages received.
The example also demonstrates (based on user actions like button clicks) additional one-to-one chat functionality available within CAXL:

In Action

Instructions for using this example:

  • Click the "Connect" button to connect the client to the server.
  • Enter the username you wish to send a message to, the message itself and then click the 'Send Message' button.
  • Message received will be displayed.

***Note: In order to simulate users chatting with one another, please open another instance of your browser and navigate to this page.