Interface: SocketServer
@socketdb/core.SocketServer
Properties
listen
• listen: (port
: number
, callback?
: () => void
) => void
Type declaration
▸ (port
, callback?
): void
Parameters
Name | Type |
---|---|
port | number |
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
Name | Type |
---|---|
callback | (client : Socket , id : string , sessionContext? : SessionContext ) => void |
Returns
void
Defined in
lib/socket-connection/socketServer.ts:6