One of the most common implementations of realtime is for multiplayer gaming. It doesn’t require much explaining, you need realtime in order to communicate with your teammates immediately. Many realtime services such as Pusher, Pushpin, and PubNub offer you means to implement instantaneous chat features like cross-platform messaging, private and public chats, typing indicators, and notifications. Other features such as Presence, allow you to get instantaneous notifications of when someone is online or offline as well.

Realtime services such as Ably offer connections state recovery features as well. When a client disconnects abruptly, Ably realtime client will automatically try to reconnect the user every 15 seconds. It will continue this process for up to two minutes to recover the client’s connection.

Here is a visual example of how these features and more could work:

Realtime - Multiplayer Gaming


Adding Real-Time Multiplayer Support To Your Android Game

Citing Gamesparks, “An excellent example of this is Clash Royale’s deployment system. By allowing players to play a card, and then handing responsibility for movement to the game’s AI, the game mitigates for problems commonly seen on mobile devices, such as a brief drop in connection, keeping the player in the game. So before you start turning to the general challenges of running a real-time multiplayer game, first think about the problems your specific game’s genre might have. This will help you to prioritise your time and efforts into areas where you will see the biggest benefits.”