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.
- When the poll method is not called for more than 1 minute and 30 seconds, the connection between the chat server and client may be destroyed.
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.Chat.Poll();
Return Value
- Number of processed events