Methods
getInstanceHeartbeat(id, cbopt) → {Promise.<number>}
Gets an instance heartbeat.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
id |
string | Instance id. |
|
cb |
callback |
<optional> |
Optional callback. |
Returns:
Heartbeat timestamp.
- Type
- Promise.<number>
instanceRecovery(id, cbopt) → {Promise.<undefined>}
Fixes an instance data after an incorrect service shutdown.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
id |
string | Instance id. |
|
cb |
callback |
<optional> |
Optional callback. |
Returns:
Promise that resolves without any data.
- Type
- Promise.<undefined>
roomStateSync(roomName, cbopt) → {Promise.<undefined>}
Sync room to users associations.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
roomName |
string | Room name. |
|
cb |
callback |
<optional> |
Optional callback. |
Returns:
Promise that resolves without any data.
- Type
- Promise.<undefined>
userStateSync(userName, cbopt) → {Promise.<undefined>}
Sync user to sockets associations.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
userName |
string | User name. |
|
cb |
callback |
<optional> |
Optional callback. |
Returns:
Promise that resolves without any data.
- Type
- Promise.<undefined>