GitHub Documentation Patreon donate button

Is this possible to get `onAuth` reject reason to client?



  • I want to provide more information to user why auth failed: any reply from auth server that I can possibly get (error code or message). But I get only a warning colyseus.js:2599 Possible causes: room's onAuth() failed or maxClients has been reached.. Error object also does not contain any custom data I provide in Promise's reject. So the question is - is there any workaround about this?


 

GitHub Documentation Patreon donate button

© 2019 Endel Dreyer