Client - Mimerme/NewChat GitHub Wiki

Client

The client interacts with the server by sending and recieving events and displaying them to the user.

Parameters

createRoom - create a room, if the room exists then this parameter is ignored [function]

addUser - adds a user on connection, or when the initial user list is retrieved [function]

displayMessage - append the supplied message [function]

renew - redirects to a URL to renew the room [function]

canRenew - fired when the room can be renewed [event]

description - set the room's description. This parameter is only used when the createRoom parameter is specifed and valid [var]

room - the room specified [var]

URL - the URL for renewals [var]

REDIRECT_URL - the URL to redirect to when the room times out [var]

nick - join a room with the specified nickname [var]