Closed dominykas closed 5 years ago
Chrome reports an error when constructing the WebSocket:
WebSocket
Uncaught DOMException: Failed to construct 'WebSocket': The subprotocol '[object Object]' is invalid.
Unlike ws, the browser WebSocket does not allow options, only protocols in the constructor: https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket.
ws
options
protocols
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
Chrome reports an error when constructing the
WebSocket
:Unlike
ws
, the browserWebSocket
does not allowoptions
, onlyprotocols
in the constructor: https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket.