Skip to content

Add support for WebSocket sub-protocols #24

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

Closed
wants to merge 1 commit into from
Closed

Add support for WebSocket sub-protocols #24

wants to merge 1 commit into from

Conversation

htdvisser
Copy link

This Pull Request adds support for the optional protocols parameter to the WebSocket constructor. Both the "protocol string" and "array of protocol strings" variants are supported, depending on the number of protocols passed to websocket.Dial or websocketjs.New.

@htdvisser htdvisser closed this May 5, 2020
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.

1 participant