Pular para o conteúdo principal
POST
Subscribe To Lobby Resource

Autorizações

X-EntityToken
string
header
obrigatório

This API requires an Entity Session Token, available from the Entity GetEntityToken method.

Corpo

application/json

Request to subscribe to lobby resource notifications.

Request to subscribe to lobby resource notifications.

EntityKey
object
obrigatório

The entity performing the subscription.

PubSubConnectionHandle
string
obrigatório

Opaque string, given to a client upon creating a connection with PubSub.

ResourceId
string
obrigatório

The name of the resource to subscribe to. For LobbyChange subscriptions this is the lobbyId. For LobbyInvite subscriptions this should always be "@me".

SubscriptionVersion
number
obrigatório

Version number for the subscription of this resource.

Type
enum<string>
obrigatório

Subscription type. "LobbyChange" subscriptions allow a member or owner to receive notifications of lobby data, member or owner changes. "LobbyInvite" subscriptions allow a player to receive invites to lobbies. A player does not need to be a member of a lobby to receive lobby invites.

Opções disponíveis:
LobbyChange,
LobbyInvite
CustomTags
object

The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).

Resposta

code
integer

The Http status code. If X-ReportErrorAsSuccess header is set to true, this will report the actual http error code.

status
string

The Http status code as a string.

data
object
Última modificação em 6 de outubro de 2026