Hi I tried to remove the previous login client at requestJoin part by matching client Id and I can successfully remove the previous login client. But If the client is the last person in the room, the room will get disposed and new room will be created for the second login client. And this will cause a remoteroom call promised error. Is there better way for kick out first login client instead of detecting at requestJoin? Please advise please.
requestJoin (options) {
console.log("request join!", options);
for(var id in this.clients)
{
if(options.clientId == this.clients[id].id)
{
this.clients[id].close();
}
}
return true;
}