javascript/index.js
//this method is called when we receive the info about the current state of the room (clients connected)
this method is called when we receive the info about the current state of the room (clients connected)
this method is called when we receive the info about the current state of the room ( clients connected )
function resp_on_room_info(info){
  	console.log("on_room_info is %s",JSON.stringify(info)); 
	this.master = check_master_user(parseInt(this.userid),info.clients);
	console.log("master is %d",this.master);
}
function resp_on_room_info ( info ) { console . log ( "on_room_info is %s" , JSON . stringify ( info ) ) ; this . master = check_master_user ( parseInt ( this . userid ) , info . clients ) ; console . log ( "master is %d" , this . master ) ; }
this method is called when we receive the info about the current state of the room (clients connected)
this method is called when we receive the info about the current state of the room ( clients connected )
//to know which users are inside