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:

  • s2sCreate establishes a connection to another application.
  • s2sDestroy closes a connection to another application.
  • s2sAddMessage sends a message to another application.
  • s2sSetTimer sets a timer event for the server-to-server connection.

Events:

  • on_client_connect event is called when a new connection is established.
  • on_client_connection_error event is called when the establishment of a connection has failed.
  • on_client_disconnect event is called when a connection is closed.
  • on_client_message event is called when a message is received from an application.
  • on_client_message_send event is called for every outcomming message for the server-to-server connection.
  • on_client_timer event is called when a timer is expired for a specific server-to-server connection.