serveWebSocket uses the global websocket.DefaultDialer to dial WebSocket connections. This would not be an issue except each call to serveWebSocket may modify websocket.DefaultDialer.TLSClientConfig. This means there may be unpredictable behavior if an application has more than one forwarder serving WebSockets. This could potentially be the cause of #125
I would also like to add an optSetter to modify the WebSocket Dialer the use of a global dialer is blocking that feature.
serveWebSocket
uses the globalwebsocket.DefaultDialer
to dial WebSocket connections. This would not be an issue except each call toserveWebSocket
may modifywebsocket.DefaultDialer.TLSClientConfig
. This means there may be unpredictable behavior if an application has more than one forwarder serving WebSockets. This could potentially be the cause of #125I would also like to add an
optSetter
to modify the WebSocket Dialer the use of a global dialer is blocking that feature.Happy to send a PR!