-
Notifications
You must be signed in to change notification settings - Fork 967
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
Manipulate the URL #127
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi folks,
I've the problem that my websocket endpoint needs authentication.
The first approach was to send a Authorization header field with the bearer token like ALL my endpoints expect.
But I found no websocket client for javascript providing a custom header field.
So I changed to queryParameter. So my URL contains
ws://<baseURL>/<path>?token=<access_token>
.Now I ran into the next problem. If I lose the connection to my websocket for longer than 5 minutes, then the access_token stored in the initial URL will be invalid. In this case the re-connect logic results in a infinite loop.
So I would like to adjust the websockets URL in case my auth.access_token changes.
Is there currently a mechanism allowing that?
Otherwise I have to kill my websocket connection each 5 minutes and restore it. This would no so cool.
T
The text was updated successfully, but these errors were encountered: