Play free

Home / Devlog / Online rooms from the inside

Online rooms from the inside

Playing with friends online was one of the first things players asked for. Here is how rooms work, and what we learned when joining broke in October.

A host and its guests

Barakah Kart's online play has no game servers of its own. The player who creates a room is the host, and their device runs the race. Every guest connects directly to the host using WebRTC, the same technology video calls use, and the host passes each player's moves on to everyone else up to twenty times a second. A small online service is used only to help the devices find each other.

That keeps the game free to run, but it has trade-offs we say plainly: if the host leaves, the room ends for everyone; nobody can join in the middle of a race; and the host's device does the most work, especially in a sixteen-kart Kart Royale.

When a direct connection is impossible

Some school, hotel and mobile networks block direct connections between devices. Rather than leave those players out, the game falls back to relaying their messages through the online service. Relayed players get fewer updates a second, so their karts look rougher, and they cannot use voice chat, but they still get in. Tests ran four players with every one of them relayed, and with one relayed player among four.

Codes that cannot spell anything

Room codes are five letters long and made only of consonants, which gives about 3.2 million codes, and none of them can spell a word. When you type one, look-alike characters are corrected: a 1 becomes an L, a 2 a Z, a 5 an S, an 8 a B and a 6 a G. The letter O and the digit 0 are never used, so there is nothing to confuse.

The week joining broke

On 12 October 2026, players on the live site could not get into rooms. The server logs showed that the online service's 'presence' feature, which we used to show who was in a room, was timing out, and when it did, the service closed that player's whole connection. Retrying did not help; on top of that, a quick 'Try again' could hang for eight seconds.

The fix was to stop using presence entirely. Devices now announce themselves with small messages, the host answers every newcomer, and a guest who hears nothing simply asks again a few times. We added tests with a deliberately broken fake server that kills every page's first connection, and checked that everyone still gets in. It is written up in full in the repository's multiplayer document.

Safety by design

There is no text chat anywhere, and no place in a room to type anything. A player is a seat number, a racer and a kart from the game's own lists, plus a username if they are signed in. Voice chat is off until each player turns it on, and anyone can mute anyone. Our online rooms guide covers how to use rooms, and the parents' guide covers what children can and cannot do.

More devlog