Signals
A system to communicate between multiple servers.
Functions
impulse.Signals.Hook(class, func)
View source »Creates a hook to be triggered from a signal.
Parameters
-
class
string
The class of the hook.
-
func
function
The function to be ran when triggered.
impulse.Signals.ReadAll(onDone)
Internal
This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.
Reads all signals
Parameters
-
onDone
function
Callback when the DB is successfully read.
impulse.Signals.Send(class, data, to, delay)
View source »Sends a signal to another server
Parameters
-
class
string
Class of the signal hook.
-
data
Data to send.
-
to
int
The signal server ID of the server you want to signal to.
-
delay
int
optional
The delay (in seconds) of the hook.