Skip to main content

sendWebsocketNotification

sendWebsocketNotification(methodName, userId, data?): Promise<unknown>

Sends websocket notification to client

Parameters

methodName

string

the unique key used by client to determine how it would handle the incoming data

userId

string

the Id of a user which will receive the notification

data?

object

the data of the notification. Client should know what data to expect depending on the methodName

Returns

Promise<unknown>