websockets
websockets copied to clipboard
add protocols option to WebSocket constructor
trafficstars
This commit adds an option bag to the WebSocket constructor that allows settings the protocols. This will bring interop between browsers and server environments that already implement this (Bun and Node).
Closes: https://github.com/whatwg/websockets/issues/42
- [ ] At least two implementers are interested (and none opposed):
- NodeJS
- …
- [ ] Tests are written and can be reviewed and commented upon at:
- …
- [ ] Implementation bugs are filed:
- Chromium: …
- Gecko: …
- WebKit: …
- Deno: …
- [ ] MDN issue is filed: …
- [ ] The top of this comment includes a clear commit message to use.
(See WHATWG Working Mode: Changes for more details.)