V
V
vsvladimir2016-02-27 11:53:07
Android
vsvladimir, 2016-02-27 11:53:07

Is it possible to change the server after the socket has been initialized on the client?

Is it possible in socket.io on the client to change the server and reconnect without creating a new object (so that you don’t have to delete old handlers and create them again in a new object)?

socket = IO.socket(server);
socket.on(...);
socket.connect();
...
socket.changeServer(newServer); // ??

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question