clients

command
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 16 Imported by: 0

README

Go lobby example

From the repository root, run the lobby (cmd/lobby) with a game and Centrifugo, then create or join a lobby with the optional reference client:

go run ./clients -name Ada
go run ./clients -name Grace -join-code ABCDEFGH

Use -api-url, -game-key, -name, and -join-code to select the public endpoint and lobby flow; -game-key is a key from the lobby's LOBBY_GAMES, mock-game by default. The example creates a guest credential, requests a Centrifugo connection token, subscribes to the returned room channel, and heartbeats only while connected. Ctrl-C releases this process's lease; it does not leave the durable lobby membership.

The production-oriented Python wrapper and CLI live under clients/lobby-python/, and the TypeScript client under clients/lobby-typescript/; this Go command remains a compact manual reference.

Documentation

Overview

Command lobby-example is a small manual client for the generic lobby API. It intentionally contains no server API key, signing secret, or proxy secret.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL