http icon indicating copy to clipboard operation
http copied to clipboard

HTTP client: Support HTTP upgrades (WebSockets)

Open clue opened this issue 5 years ago • 2 comments

This library should provide support for HTTP upgrades (WebSocket etc.) using the Connection: upgrade and Upgrade: websocket headers.

This is already supported on the server-side (see #190), so adding support for this on the client-side should be reasonable. This will likely require a dedicated API as the existing streaming APIs only expose a ReadableStreamInterface and the upgraded stream would have to be a DuplexStreamInterface.

We welcome contributions, reach out if you want to support this project :+1:

clue avatar Jul 12 '20 21:07 clue

The good news is that I was able to have a working implementation of this during the weekend 😀. I'm currently testing and hope to get a PR in by tomorrow.

bosunski avatar Jul 27 '20 18:07 bosunski