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

Unable to connect with auth info in url and special characters #448

Open
chriscoindeskindices opened this issue Apr 23, 2023 · 1 comment
Assignees
Labels

Comments

@chriscoindeskindices
Copy link

My connection URL is something like:

wss://user:[email protected]/path

When I try to connect to this URL using plain WebSocket in the browser it has no issue, but with WebSocketClient I get a 401 response from the server. Somehow the auth information is not being sent.

@theturtle32
Copy link
Owner

You are right, this is an oversight!

This code should be passing the auth property as part of the requestOptions object.

https://nodejs.org/dist/latest-v20.x/docs/api/http.html#httprequesturl-options-callback

@theturtle32 theturtle32 self-assigned this Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants