Skip to content

Is one worker can only assigned to one player? #267

Discussion options

You must be logged in to vote

Hi @gegaojian-richard,

This logic is checking if a new user joins an existing room, the worker handling that room will serve that user. If not, the user will pick among available server.

I think you got confused by this line "wc.IsAvailable = false" and "wc.IsAvailable = true" at the end of peerconnection. It looks like a bug here, wc.IsAvailable can only set to true if there is no peerconnection assign to it.

Thanks very much for pointing that out!

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@giongto35
Comment options

@gegaojian-richard
Comment options

@sergystepanov
Comment options

@giongto35
Comment options

@gegaojian-richard
Comment options

Answer selected by gegaojian-richard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants