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

Handle Websocket using standard library #637

Merged
merged 6 commits into from
Jan 26, 2025
Merged

Handle Websocket using standard library #637

merged 6 commits into from
Jan 26, 2025

Conversation

ErikPelli
Copy link
Collaborator

Fixes #630.
Instead of relying on custom code to handshake WebSockets separately, just rely on the standard library response Body, as explained in the documentation.
This will also use a cascadeproxy configuration by default, without the need to setting a custom per-request Dialer, when the custom transport is configured with a proxy URL.

I also update the websocket example to use a more updated WebSocket client library.

@ErikPelli
Copy link
Collaborator Author

@elazarl do you want to give me a review about this PR?
In my mind, LGTM, but I prefer a second impartial look at it!

@elazarl
Copy link
Owner

elazarl commented Jan 21, 2025

@ErikPelli will look into it, I have to re-read the websocket RFC to really verify that.
But thanks! Looks amazing.

@ErikPelli
Copy link
Collaborator Author

Sure! Take your time

@ErikPelli
Copy link
Collaborator Author

@elazarl have you had any chance to look at this PR? Can I merge it?

@elazarl elazarl merged commit ddbd8c1 into master Jan 26, 2025
1 check passed
@ErikPelli ErikPelli deleted the websocket-direct branch January 27, 2025 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use directly HTTP transport to establish websockets
2 participants