-
Notifications
You must be signed in to change notification settings - Fork 55
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
config.lobby.newMember invoked before config.clientEvents.begin? #91
Comments
Yup looks like it: https://github.com/incompl/cloak/blob/master/src/server/cloak/index.js#L133-L138 I could see the case for swapping those in a new version. What do you think, @jugglinmike? |
To clarify, this is obviously not a deal breaker but I was thrown off by the fact that one could be seen as entering a room (newMember) before one had established a first handshake with the server (begin). Hence my post. I could do a PR if you want. |
The Maybe the documentation needs to be updated to make the distinction clearer. |
@gamecubate I'd be happy to look at a PR for that! |
Well, judging from @vstirbu's answer, this seems normal. I wouldn't want to rock the boat for so trivial a matter. Will close issue for now. |
Looking at the sequence of server side events, it seems like lobby.newMember gets called before clientEvents.begin (newly connected user) does. This doesn't make sense to me but I'll work with it if that is indeed the way things are. Can you confirm? Thanks.
The text was updated successfully, but these errors were encountered: