Messaging
Managing incoming connections is a critical aspect of the Game Carrier Server application, and the Server API offers a comprehensive set of events and functions for this purpose.
Events:
on_connect
event is called when a new connection is established.on_disconnect
event is called when a connection is closed.on_message
event is called when a message is received from a client.on_message_send
event is called for every outcomming message to a client.on_timer
event is called when a timer is expired for a specific connection.on_issue
is called when connection stats fall outside of the specified limits.
Functions:
connectionAddMessage
- sends a message to a client.connectionClose
- closes a connection.connectionSetTimer
- sets a timer event for a connection.connectionSetLimit
- sets a limit for connection statistics.