capabilities.work

Lobby Join By Code

A 3-step recipe with Unity. We can help you get access.

Recipe · 3 steps

Lobby Join By Code

with Unity

Join a private lobby by code, set player data, and heartbeat.

  1. Join the private lobby using the shared join code, registering the joining player.
  2. Update the joining player's custom data within the lobby, for example a readiness flag.
  3. Send a heartbeat to keep the lobby and the player's membership active.
What you'll need to have ready
  • accessToken: Bearer JWT for the joining player.
  • lobbyCode: The lobby join code shared by the host.
  • playerId: The Unity player id of the joining player.
  • readyValue: A custom data value to set for the player (for example "ready").
For your developer

Arazzo workflow unity:lobby-join-by-code, 3 operations: joinLobbyByCode → updatePlayerData → heartbeatLobby. Specs on APIs.io.