C# Class PlayFab.PlayFabPlayStreamAPI

APIs which allow game servers to subscribe to PlayStream events for a specific title This API is server only, and should NEVER be used on clients.
Exibir arquivo Open project: PlayFab/PlayFabGameServer

Public Methods

Method Description
Start ( string eventFilterId = null ) : void

Start the SignalR connection asynchronously and subscribe to PlayStream events if successfully connected. Optionally pass an filter id to only be subscribed to specific types of PlayStream events. Event filters can be configured on GameManager.

Stop ( ) : void

Sends a disconnect request to the server and stop the SignalR connection.

Private Methods

Method Description
OnConnectedCallback ( string filter ) : void
OnDisconnectedCallback ( ) : void
OnErrorCallback ( Exception ex ) : void
OnPlayStreamNotificationCallback ( object data ) : void
OnReceivedCallback ( string msg ) : void
OnReconnectedCallback ( ) : void
OnSubscriptionErrorCallback ( object data ) : void
OnSubscriptionSuccessCallback ( object data ) : void

Method Details

Start() public static method

Start the SignalR connection asynchronously and subscribe to PlayStream events if successfully connected. Optionally pass an filter id to only be subscribed to specific types of PlayStream events. Event filters can be configured on GameManager.
public static Start ( string eventFilterId = null ) : void
eventFilterId string
return void

Stop() public static method

Sends a disconnect request to the server and stop the SignalR connection.
public static Stop ( ) : void
return void