Module

Sockets

This module is in charge of actions relating to sockets Note that the socket also uses the session data to retrieve current user

View Source backend/sockets/sockets.js, line 1

Methods

# static emitNewStreamerJoined(streamId)

Emites a newStreamerJoined event
Parameters:
Name Type Description
streamId *

View Source backend/sockets/sockets.js, line 175

# static emitReloadNotifications(userId)

Emites a notifications change
Parameters:
Name Type Description
userId *

View Source backend/sockets/sockets.js, line 167

# 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

View Source backend/sockets/sockets.js, line 159

# static isUserOnlineRoom(userId)

Checks if user is online
Parameters:
Name Type Description
userId *

View Source backend/sockets/sockets.js, line 183