-
-
Bind the session with the the uid.
Parameters:
Name |
Type |
Description |
uid |
Number
|
User id |
-
-
Closed callback for the session which would disconnect client in next tick.
-
-
Get value from the session.
Parameters:
Name |
Type |
Description |
key |
String
|
session key |
Returns:
Object
- value associated with session key
-
-
Remove value from the session.
Parameters:
Name |
Type |
Description |
key |
String
|
session key |
-
-
Send message to the session.
Parameters:
Name |
Type |
Description |
msg |
Object
|
final message sent to client |
-
-
Send message to the session in batch.
Parameters:
Name |
Type |
Description |
msgs |
Array
|
list of message |
-
-
Set values (one or many) for the session.
Parameters:
Name |
Type |
Description |
key |
String
|
Object
|
session key |
value |
Object
|
session value |
-
-
Unbind the session with the the uid.
Parameters:
Name |
Type |
Description |
uid |
Number
|
User id |