-
-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
Right now in order to change websocket url you have to create a new instance of Sockette. This an issue for us because our url includes authorization token which expires after some time and when Sockette tries to reconnect it tries to reconnect using an expired token.
Here are a couple of possible solutions to this issue:
getUrlconfig which can be set to a function which either returns astringdirectly or aPromise<string>. Sockette would use this function every time it tries to automatically establish websocket connection.setUrl()method on the Sockette class and ability to setonreconnectconfig to a function which returns aPromise. Sockette would wait foronreconnectpromise to finish before it would try to reestablish connection.
@lukeed what do you think about it? Do you have any better suggestions?
andrew--r, Gabiras12, juliolemesti, carlovsk, marcelomarra and 2 more
Metadata
Metadata
Assignees
Labels
No labels