This example uses Orbiter, JavaScript, and HTML, to create a lobby interface, including a list of rooms and a dynamically updated room-occupant list. For a simpler room-list example, see Live Room List.

[Edit Live on JSFiddle] [Download]

The lobby demonstrates the following Orbiter features:

  • Retrieving a list of rooms on Union Server
  • Running a function when a room is added to or removed from Union Server
  • Spectating the activity in a room
  • Displaying a list of users in a room room
  • Running a function when a client joins or leaves a room
  • Creating a temporary screen name for a user

The Code

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