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.
Afficher le fichier Open project: PlayFab/PlayFabGameServer

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

Stop() public static méthode

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