Skip to main content

Interface: SocketServer

@socketdb/core.SocketServer

Properties​

listen​

• listen: (port: number, callback?: () => void) => void

Type declaration​

▸ (port, callback?): void

Parameters​
NameType
portnumber
callback?() => void
Returns​

void

Defined in​

lib/socket-connection/socketServer.ts:13


onConnection​

• onConnection: (callback: (client: Socket, id: string, sessionContext?: SessionContext) => void) => void

Type declaration​

▸ (callback): void

Parameters​
NameType
callback(client: Socket, id: string, sessionContext?: SessionContext) => void
Returns​

void

Defined in​

lib/socket-connection/socketServer.ts:6