This module is in charge of actions relating to sockets
Note that the socket also uses the session data to retrieve current user
Methods
# static emitNewStreamerJoined(streamId)
Emites a newStreamerJoined event
Parameters:
Name | Type | Description |
---|---|---|
streamId |
* |
# static emitReloadNotifications(userId)
Emites a notifications change
Parameters:
Name | Type | Description |
---|---|---|
userId |
* |
# static emitToUser(userId, event, data)
Emits an even to a user
Parameters:
Name | Type | Description |
---|---|---|
userId |
* | id of the user |
event |
* | event type |
data |
* | event data |
# static isUserOnlineRoom(userId)
Checks if user is online
Parameters:
Name | Type | Description |
---|---|---|
userId |
* |