Multiplayer chat

0 favourites
  • 4 posts
From the Asset Store
Chat with smart animals using the OpenAi Chat GPT 3 API
  • 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?

  • I would build chat app with firebase service. Here is a demo.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • Firebase is a cloud data service. And it could broadcast data to all listeners (clients).

    Ajax, php, MySQL only could polled requests from clients, server does not have ability to send notification to any clients, this is not the same with firebase, imo.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)