Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

room.Send() should throw an error if the send failed, rather than returning silently #154

Open
rnd256 opened this issue May 21, 2021 · 3 comments

Comments

@rnd256
Copy link
Contributor

rnd256 commented May 21, 2021

No description provided.

@endel
Copy link
Member

endel commented May 21, 2021

Hi @rnd256, thanks for reporting as always.

Forgive my ignorance but in which situation would room.Send() fail? I can only think of operating on a disconnected WebSocket, if that's what you're referring to we should make it throw an error indeed!

@rnd256
Copy link
Contributor Author

rnd256 commented May 21, 2021

Hi @endel, thanks for the fast response as always :)

That's exactly what I'm referring to! Here are the two spots where I think an issue could occur:

@tonygiang
Copy link

+1

I don't know if a disconnection detected by the Colyseus client will always be detected by the server, but having a confirmation that a disconnection did happen client-side will help with problem diagnosis greatly, and identify such cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants