I am pretty new to socketcluster and sockets in general. So I used a terminal chat example from https://github.com/devonJS/socket-cluster-chat/
I would like to scale it to 2 workers instead of one, specifically I would like to have the second worker as backup. So if the first worker dies I want all clients to connect to the backup worker. There should be a possibility to do that right?
I have played around with it a little but I cannot get it right. I would really appreciate a pointer in the right direction. I know that there are other solutions like forever or nginx, but I want to implement it myself, because I think only then I've understood it. I did not post code, cause it is quite a bit, but I can edit that in, if needed. Again any pointers would be appreciated. Cheers