Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sock |
Socket | SocketIO master connection | ||||||||||||
config |
Object |
Coraline Configuration Object
|
Extends
Members
-
Client pool
-
Coraline ID
-
Coraline max_clients
-
Coraline name
-
qmanager EventEmitter
-
Query EventEmitter
-
SocketIO master connection
Methods
-
Emits a broadcast signal to clients
Name Type Description signal
String Signal to emit ...args
Any repeatable Arguments to send -
Returns a client with specified id
Name Type Description client_id
number Client ID to search -
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 -
Resolves a query
Name Type Description id
number Client ID iid
number Query ID ...args
Any repeatable Arguments to send