Multi-user Chat Example

An example demonstrating how to use CAXL's Client, MUCController and Room classes to create a multi-user chat client.

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.MUCController for controlling the multi-user chat.
  3. Registering for the jabberwerx.MUCController mucInviteReceived event to handle invitation requests.
The example also demonstrates (based on user actions like button clicks) additional multi-user chat functionality available within CAXL:

In Action

Instructions for using this example:

  • Click the "Connect" button to connect the client to the server.
  • Click the "Enter Room" button to create new room and enter it. Feel free to change the default room name.
  • Type a broadcast message into the edit field provided and click the "Broadcast" button to send it to all of the occupants of the room
  • Type a new subject into the edit field provided and click the "Change Subject" button.
  • Type the user name (not including the domain) of the user you would like to invite to the room and click the "Invite User Button".
***Note: In order to simulate multiple users connecting to the same room, please open another instance of your browser and navigation to this page.