Skip to main content

Function: broadcast()

broadcast(request, context): Promise<void>

Defined in: functions/events.ts:20

Broadcast - Sends a broadcast to a room.

This callback fires when data is broadcast from a connected client via .emit in the context of a room. The data is processed into a returnable event and data combination and then dispatched to the same room the requesting user belongs to.

Parameters

request

SocketIODataTrigger

The SocketIODataTrigger

context

InvocationContext

The Invocation Context (metadata)

Returns

Promise<void>