Open clue opened 4 years ago
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.
@clue Are there any plans to add this feature? I'd love to add the ability to forward websocket connections to Expose, but those requests currently get closed immediately
This library should provide support for HTTP upgrades (WebSocket etc.) using the
Connection: upgrade
andUpgrade: 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 aDuplexStreamInterface
.We welcome contributions, reach out if you want to support this project :+1: