-
-
Adds a query to the query pool
Name |
Type |
Description |
fn |
function
|
Query callback |
-
-
Emits a message to the remote client
Name |
Type |
Description |
signal |
String
|
Signal to emit |
...args |
Any
|
repeatable
Data to send |
-
-
Adds a listener to a query event
Name |
Type |
Description |
signal |
String
|
Event name to listen |
cb |
function
|
Callback fired each time a query with the specified signal is received |
-
-
Emits a query to the remote client
Name |
Type |
Description |
signal |
String
|
Signal to emit |
...args |
Any
|
repeatable
Data to send |
-
-
Emits a resolve signal to the client
Name |
Type |
Description |
iid |
number
|
Query ID |
...args |
Any
|
repeatable
Arguments to emit |
-
-
Runs a query and deletes it from the query pool
Name |
Type |
Description |
iid |
number
|
Query ID |
...args |
Any
|
repeatable
Arguments to pass to the function |