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

Allow intercepting the client id inside the checkClientHandler #280

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FabianTerhorst
Copy link

I had a issue having multiple connections with the same client id, but with a different token inside the http websocket upgrade request. Making it possible to remap the id inside the checkClientHandler would fix this for me. Im open to suggestions.

@lorenzodonini
Copy link
Owner

Hey, can you explain in more detail why this would be needed? The client identifier has to be passed within the URL as per specification. Why would this ID depend on another token passed within the request?

If you could provide an example the requirement would become clearer.

Note that duplicate clients with the same ID currently get rejected with a 1008 (policy violation) error. This is to prevent kicking out existing clients.

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

Successfully merging this pull request may close these issues.

2 participants