Skip to main content

Function: connected()

function connected(request, context): Promise<void>;

Defined in: functions/socket.ts:41

connected - Socket.IO connected callback

This callback fires when a socket.io connection successfully connects to WebPubSub. If the connected user was still in a room, notify room members that the user has come back online.

Parameters

ParameterTypeDescription
requestSocketIOTriggerThe SocketIODataTrigger
contextInvocationContextThe Invocation Context (metadata)

Returns

Promise<void>