Accept Deno.HttpClient
instance for WebSocketStream API
#11846
Labels
ext/websocket
related to the ext/websocket crate
suggestion
suggestions for new features (yet to be agreed)
web
related to Web APIs
The options bag accepted by
WebSocketStream
should be extended to accept aDeno.HttpClient
object. This would enable trusting specific TLS server certificates, and also Mutual TLS / Client Certificate support. There's also a proxy field inDeno.CreateHttpClientOptions
which presumably also applies to WebSockets.For context, both APIs here are currently unstable in Deno. The upstream
WebSocketStream
spec does not allow for customizing TLS as it is intended for a web browser context, likefetch
.Brief example code:
The text was updated successfully, but these errors were encountered: