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

Can I customize the handshake headers when using useWebSocket? #2515

Closed
minhnhathoang opened this issue Apr 9, 2024 · 3 comments
Closed
Labels
feature New feature or request

Comments

@minhnhathoang
Copy link

No description provided.

@liuyib
Copy link
Collaborator

liuyib commented Apr 9, 2024

Sorry, not supported yet. Welcome to contribute a PR to improve it, thx.

@crazylxr crazylxr added the feature New feature or request label Apr 21, 2024
@goodjun
Copy link
Contributor

goodjun commented Apr 24, 2024

😢 Sorry, the current JS WebSocket API does not support custom header functionality at the moment. The WHATWG is currently discussing this feature.

whatwg/websockets#16

@liuyib
Copy link
Collaborator

liuyib commented Apr 24, 2024

Thanks for your reply @goodjun. We'll implement it once the standard supports custom WebSocket headers.

@liuyib liuyib closed this as completed Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants