You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would allow server environments (specifically talking about nodejs/undici) that implement WebSocket some flexibility, for example, to add custom headers, etc. While we could change it on our side, it would be incompatible with other implementations. Similarly, it'll cause type issues with people who use typescript in cross-env packages (ie. nodejs/undici#1943).
Proposed change:
dictionary WebSocketInit {
protocols: DOMString or sequence<DOMString>
}
interfaceWebSocket : EventTarget {
constructor(USVString url, optional (DOMString or sequence<DOMString> or WebSocketInit) options = []);