We are trying to find the best approach to our load balancing issue with websockets.
Websocket can initially connect to any server, that server will run some logic and then if needed it will "redirect" the client to appropriate server.
Is there a way in socket.io/engine.io to redirect/forward connections?
Something like:
io.use(function(socket){
// ... logic
if(logic === true){
socket.redirect("172.10.10.2:3000");
}
});
I am aware of that socket.redirect
is not valid function but is there something like that?
via Tom
No comments:
Post a Comment