Describe what you would like to know or do
I'm writing discord bot without JDA. So, my only way is to use websockets. But there is one thing, that I can't understand: can I change URI for my websocket client without re-initializing whole class? I can't check this myself, because situations, where I need to change URI are rare.
Additional context
The way it's implemented in my code now:
this.uri = new URI(resume_url);this.reconnect();
Describe what you would like to know or do I'm writing discord bot without JDA. So, my only way is to use websockets. But there is one thing, that I can't understand: can I change URI for my websocket client without re-initializing whole class? I can't check this myself, because situations, where I need to change URI are rare.
Additional context The way it's implemented in my code now:
this.uri = new URI(resume_url);
this.reconnect();