GET
/
lobbies-sse
/
{lobbyId}
/
events
Subscribe to real-time lobby updates via Server-Sent Events
curl --request GET \
  --url https://api.scale.computeflow.cloud/lobbies-sse/{lobbyId}/events
"event: connected\ndata: {\"message\":\"Successfully connected to lobby SSE\",\"lobby\":{}}\n\n"

Path Parameters

lobbyId
string
required

Unique identifier of the lobby to subscribe to

Example:

"123e4567-e89b-12d3-a456-426614174000"

Query Parameters

player-id
string
required

ID of the player subscribing (must be a member of the lobby)

Example:

"player123"

lobby-config
string
required

Name of the lobby configuration (must match an enabled config in your project)

Example:

"default-lobby"

Response

SSE stream established successfully

The response is of type string.

Example:

"event: connected\ndata: {\"message\":\"Successfully connected to lobby SSE\",\"lobby\":{}}\n\n"