Chat

This example uses Orbiter, JavaScript, and HTML to create a chat application. This example is also available for OrbiterMicro (lightweight JavaScript framework) and Reactor (Adobe Flash framework).

[Edit Live on JSFiddle] [Download]

The chat application demonstrates the following Orbiter features:

  • Creating a room
  • Joining a room
  • Sending a message to a room
  • Running a function when a client receives a message
  • Displaying messages on screen

The Code

Here is the code for the preceeding example. Click the "+" button to edit it live on JSFiddle.