websockets icon indicating copy to clipboard operation
websockets copied to clipboard

add protocols option to WebSocket constructor

Open KhafraDev opened this issue 1 year ago • 0 comments
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.)


Preview | Diff

KhafraDev avatar May 20 '24 17:05 KhafraDev