Server To Server
The Server API offers a collection of events and functions designed for facilitating communication between applications. This API shares similarities with the messaging part of the Client API.
Functions:
s2sCreateestablishes a connection to another application.s2sDestroycloses a connection to another application.s2sAddMessagesends a message to another application.s2sSetTimersets a timer event for the server-to-server connection.
Events:
on_client_connectevent is called when a new connection is established.on_client_connection_errorevent is called when the establishment of a connection has failed.on_client_disconnectevent is called when a connection is closed.on_client_messageevent is called when a message is received from an application.on_client_message_sendevent is called for every outcomming message for the server-to-server connection.on_client_timerevent is called when a timer is expired for a specific server-to-server connection.