sendSocketNotification
@adamondo/backend / core/socket/sendSocketNotification
core/socket/sendSocketNotification
Functions
sendSocketNotification()
sendSocketNotification(
target,notification,event?):Promise<void>
Defined in: src/core/socket/sendSocketNotification.ts:10
Sends a real-time notification to the user's socket room. This can be used in workflow handlers alongside push notification sending.
Parameters
target
The ID of the recipient user.
string | number
notification
unknown
The typed notification object.
event?
string = 'notification'
The socket event name.
Returns
Promise<void>
References
default
Renames and re-exports sendSocketNotification