javascript/index.js
//this class for connection with server. Each room should create a object and call connect
this class for connection with server. Each room should create a object and call connect
this class for connection with server . Each room should create a object and call connect
function communication_class()
{
	this.Silly = new SillyClient();
	this.Silly.on_connect = resp_on_connect;
	this.Silly.on_ready = resp_on_ready;
	this.Silly.on_room_info = resp_on_room_info;
	this.Silly.on_message = resp_on_message;
	this.Silly.on_user_connected = resp_on_user_connected;
	this.Silly.on_user_disconnected = resp_on_user_disconnected;
	this.Silly.on_close = resp_on_close;
	this.Silly.on_error = resp_on_error;
	this.Silly.roomid = null; 
	this.Silly.userid = null; 
	this.Silly.master = 0; 
}
function communication_class ( ) { this . Silly = new SillyClient ( ) ; this . Silly . on_connect = resp_on_connect ; this . Silly . on_ready = resp_on_ready ; this . Silly . on_room_info = resp_on_room_info ; this . Silly . on_message = resp_on_message ; this . Silly . on_user_connected = resp_on_user_connected ; this . Silly . on_user_disconnected = resp_on_user_disconnected ; this . Silly . on_close = resp_on_close ; this . Silly . on_error = resp_on_error ; this . Silly . roomid = null ; this . Silly . userid = null ; this . Silly . master = 0 ; }
this class for connection with server.
this class for connection with server .
//add roomid member to SillyClient instants object //add userid member to SillyClient instants object //add master member to SillyClient instants object