Interface for EventCode.ErrorInfo event callback for the Realtime Api. More...

Public Member Functions | |
void | OnErrorInfo (ErrorInfo errorInfo) |
Called when the client receives an event from the server indicating that an error happened there. More... | |
Detailed Description
Interface for EventCode.ErrorInfo event callback for the Realtime Api.
Classes that implement this interface must be registered to get callbacks for various situations.
To register for callbacks, call LoadBalancingClient.AddCallbackTarget and pass the class implementing this interface To stop getting callbacks, call LoadBalancingClient.RemoveCallbackTarget and pass the class implementing this interface
Member Function Documentation
◆ OnErrorInfo()
void Photon.Realtime.IErrorInfoCallback.OnErrorInfo | ( | ErrorInfo | errorInfo | ) |
Called when the client receives an event from the server indicating that an error happened there.
In most cases this could be either:
- an error from webhooks plugin (if HasErrorInfo is enabled), read more here: https://doc.photonengine.com/en-us/realtime/current/gameplay/web-extensions/webhooks#options
- an error sent from a custom server plugin via PluginHost.BroadcastErrorInfoEvent, see example here: https://doc.photonengine.com/en-us/server/current/plugins/manual#handling_http_response
- an error sent from the server, for example, when the limit of cached events has been exceeded in the room (all clients will be disconnected and the room will be closed in this case) read more here: https://doc.photonengine.com/en-us/realtime/current/gameplay/cached-events#special_considerations
If you implement IOnEventCallback.OnEvent or LoadBalancingClient.EventReceived you will also get this event.
- Parameters
-
errorInfo Object containing information about the error
Implemented in Photon.Pun.MonoBehaviourPunCallbacks.
The documentation for this interface was generated from the following file:
- 3rd-Party/Photon/PhotonRealtime/Code/LoadBalancingClient.cs