Functions
Const createEvent
- createEvent<User>(value: EventInput, channel: WebSocketConnection, user: User): any
Type parameters
Parameters
channel: WebSocketConnection
user: User
Returns any
Const createWsSocket
- createWsSocket(wsServer: WsServer, req: IncomingMessage, ns: Socket, head: Buffer): Promise<WebSocket>
Parameters
req: IncomingMessage
ns: Socket
head: Buffer
Returns Promise<WebSocket>
Const rejectUpgrade
- rejectUpgrade(ns: Socket, code: number, message?: string): void
Parameters
ns: Socket
code: number
Optional message: string
Returns void