Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bunchjesse opened this issue May 14, 2022 · 2 comments
Closed

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

bunchjesse opened this issue May 14, 2022 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@bunchjesse
Copy link

bunchjesse commented May 14, 2022

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

  • I'm trying to debug some of the communication using Proxyman.
    • The web socket requests do not seem to be going through the proxy.
    • Normal requests made via Foundation show up just fine.
  • I've scoured the docs and existing issues in this repository but haven't found what I'm looking for.
try await WebSocket.connect(to: url, on: eventLoopGroup) { socket in
  ...
}
@0xTim
Copy link
Member

0xTim commented May 15, 2022

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 0xTim added enhancement New feature or request help wanted Extra attention is needed labels May 15, 2022
@VaporBot VaporBot added this to To do in Help Wanted Issues May 15, 2022
@0xTim
Copy link
Member

0xTim commented May 25, 2023

This should be solved by #130

@0xTim 0xTim closed this as completed May 25, 2023
@VaporBot VaporBot moved this from To do to Done in Help Wanted Issues May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Development

No branches or pull requests

2 participants