I'm trying to build a chat system for one on my games, and I got it all figured out except the part with connecting to another host once current host leave.You see, if you are in the chat room typing your fingers out, and current host leave, you are left in a dead room with no way to send your message to others... Even if you navigate away from the room and come back, you can't send any more messages to anyone; unless you restart the game and reconnect to server.

So the question: is there a way to reassign a new host, perhaps send a message to the signaling server and switch tp one of the players in the room? Isn't that something the server suppose to do automatically?

Is firebase just another hosting provider? I already have a server... I am working on a Ajax, php, MySQL integration for the chat that I was going to communicate with the multiplayer plugin, since I don't want Ajax to send server request every few seconds; only at start of layout ( for chat history) and when user wright something.

I currently have several layouts in the game exchanging data with MySQL so I need to host the chat database on my server since I'll be requesting data from different tables.