Is it possible to use the Streams API in JavaScript to implement the WebSockets protocol for a browser client (not in Node.JS)?
The built-in WebSocket class does not work for my needs because it does not support sending an HTTP header, and I need to send a specific header to the server. I have no control over the server. Here's a related SO question.
Streams API appears to leverage the Fetch API to send the initial HTTP/HTTPS request, and I think this will allow me to send the required header. My question is more specific to whether Streams API can handle the subsequent WebSocket streaming.