The access token must be renewed at a certain interval which leads to problems when using ReconnectingWebsocket because it will still try to reconnect to the URL it has been initialized with (which could have an outdated access_token).
Is there a chance to change the connection URL at runtime? Telling from the type definitions it doesn't look like it's accessible. 😢
Our backend at Wire requires an access token as part of the WebSocket connection URL.
The schema looks like this:
The access token must be renewed at a certain interval which leads to problems when using
ReconnectingWebsocket
because it will still try to reconnect to the URL it has been initialized with (which could have an outdatedaccess_token
).Is there a chance to change the connection URL at runtime? Telling from the type definitions it doesn't look like it's accessible. 😢