Skip to main content
Version: 57.2.0

installSyncSocketHandlers

installSyncSocketHandlers(_io, socket, options?, handlerOptions?): void

Install the sync socket handlers on a single socket. Wired into RealtimeApp's connection handler alongside installRealtimeSocketHandlers.

The _io server parameter is accepted for signature symmetry with future fan-out needs; the current handlers only act on the connecting socket.

Parameters

_io

Server<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any> | null

socket

SyncSocketLike

options?

SyncAppOptions = {}

handlerOptions?

logInfo?

(msg) => void

Returns

void