Lets say I want to have a friend run my project that runs web sockets and a few other local servers on my network so me and my other friends can test my project. If the friend who hosted the web sockets had to leave, he would have to close the web sockets, and that would throw things off.
I have a few other servers running that each client is hosting separately (Vite and Express, but they don’t have any part in this), and the web pages in each server are connecting to the web sockets from that one host. So as you can see, the host disconnecting is an issue. My other servers run off of those web sockets.
Am I able to have multiple hosts (where the next host takes care of all the requests and socket messages if the current host is gone), or have something transfer the hosting to the next person (The person who connected after the host before disconnection)?
Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.