selene.network
Provides networking functions for sending data to server and handling custom payloads.
| Function |
|---|
HandlePayload(payloadId: string, callback: function(payload: table)) |
Registers a handler for incoming custom payloads from the server. |
SendToServer(payloadId: string, payload: table) |
Sends a custom payload to the server. |