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.
This Pull Request adds support for the optional
protocols
parameter to theWebSocket
constructor. Both the "protocol string" and "array of protocol strings" variants are supported, depending on the number of protocols passed towebsocket.Dial
orwebsocketjs.New
.