Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sock |
Socket | Client socket connection | ||||||||||||
id |
number | Client ID given by the Coraline server | ||||||||||||
coraline |
Object |
Coraline.toObject object
|
Extends
Members
-
Remote Coraline Info
-
Client ID
-
Query ID Counter
-
qmanager EventEmitter
-
Query event manager
-
Query container object
-
SocketIO connection
Methods
-
Emits a message to the server
Name Type Description signal
String Signal to emit args
Any repeatable Arguments 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 -
Makes a query to the server
Name Type Description signal
String Signal to emit ...args
Any repeatable Arguments to send -
Emits a resolve signal to the server
Name Type Description iid
number Query ID ...args
Any repeatable Arguments to response -
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