URI is init each time Websocket instance is create, and reuse it for every reconnect attempt. That is sometime a problem.
If I pass a jwt token to the uri then if the token is expired I always have to call the method close and create new WebSocket instance, update the uri with new token.
It is convenient if the uri value can be expose and modify outside.
URI is init each time Websocket instance is create, and reuse it for every reconnect attempt. That is sometime a problem. If I pass a jwt token to the uri then if the token is expired I always have to call the method close and create new WebSocket instance, update the uri with new token. It is convenient if the uri value can be expose and modify outside.