vapor / websocket-kit

WebSocket client library built on SwiftNIO
https://docs.vapor.codes/4.0/advanced/websockets/
MIT License
272 stars 79 forks source link

Example of using websocket-kit with system proxy? #110

Closed bunchjesse closed 1 year ago

bunchjesse commented 2 years ago

Do you have an example anywhere of how to connect to a web socket server via the system's proxy (macOS Big Sur)?

try await WebSocket.connect(to: url, on: eventLoopGroup) { socket in
  ...
}
0xTim commented 2 years ago

Vapor's WebsocketKit does not currently support connecting to a websocket server via a proxy. It's something we'd need to add and could add by adding a proxy channel handler to our bootstrap (as hinted at here)

0xTim commented 1 year ago

This should be solved by #130