Negotiate
Negotiate a SignalR Connection to the PubSub service, as the first step of establishing the connection. Note: SignalR client implementations expect the Hub URL to omit the /negotiate portion of this path (ex: HubConnection should be passed a URL that ends in ...playfabapi.com/pubsub). When starting the connection, SignalR clients will automatically append /negotiate to the end of the URL of the hub. The SignalR client will interpret the response object to establish a persistent connection to PubSub. https://learn.microsoft.com/aspnet/core/signalr/dotnet-client#connect-to-a-hub https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md#post-endpoint-basenegotiate-request
Allowed entity token types: title_player_account, game_server
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| InternalServerError | 1110 |
| InvalidParams | 1000 |
| PubSubFeatureNotEnabledForTitle | 2500 |
| PubSubTooManyRequests | 2501 |
| ServiceUnavailable | 1123 |
Authorizations
This API requires an Entity Session Token, available from the Entity GetEntityToken method.
Body
SignalR clients make this request to initiate their connection to the PubSubHub SignalR service. Clients will interpret the response and make a persistent websocket connection to the service with the details.
SignalR clients make this request to initiate their connection to the PubSubHub SignalR service. Clients will interpret the response and make a persistent websocket connection to the service with the details.
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
