OnAuth method will trigger twice
-
Hi all,
When I return false in onauth method, the console will output twice and the client will execute onError twice. Is this normal? thanks!//server side async onAuth(client: Client, options: any){ console.log("onauth------------") return new Promise.reject({message:"fail message"}) } //server side console print twice "fail message" "fail message" //client side onError will trigger twice "fail message" "" //the second err message is null string
-
Hi @BlueBang, thanks for reporting, this sounds like a bug in the printing / error reporting, I'm pretty sure things are executing only once, though. I'll have a look at this soon
-
@endel the colyseus version is "^0.12.0" , I use the Sample project on GitHub.