hapijs / nes

WebSocket adapter plugin for hapi routes
Other
502 stars 87 forks source link

Error in the browser with 10.0.1 #270

Closed dominykas closed 5 years ago

dominykas commented 5 years ago

Chrome reports an error when constructing the 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.

lock[bot] commented 4 years ago

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.