I have a code
let url = "ws://127.0.0.1:8080/sock/chat"; const con = new WebSocket(url);
Which creates a connection through a web socket. How can I change the connection address, for example to "ws://127.0.0.1:8080/sock/chat2"
without changing the user's connection session? What would the data go to a different address, or you could choose addresses. Thank.