Poll
public int Poll();
Description
Sends the client's message to the server and calls the received data in the form of an event.
- The data sent by the server is reprocessed by the SDK and an event is raised.
- To allow for messages to always be transmitted, the Poll method should be called periodically.
Call Poll from the Update method of the Unity object Create a coroutine and call Poll periodically from within that coroutine Create a separate thread and call Poll periodically within that thread
Example
Backend.Match.Poll();
Return Value
- Number of processed events
OnException
public ExceptionEventHandler OnException;
Argument
Value | Type | Description |
---|---|---|
e | Exception | Thrown exception |
Description
This event handler is called when an exception is thrown while an event is received or processed, or an exception is thrown in the event handler created by the developer.
Example
Backend.Match.OnException(e) += {
// TODO
};