web_socket_client icon indicating copy to clipboard operation
web_socket_client copied to clipboard

Expose a method to update connection uri in case of passing token parameter

Open Danny-Hoang opened this issue 1 year ago • 0 comments

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.

Danny-Hoang avatar Jan 26 '24 10:01 Danny-Hoang