Properties
close
close: ((code?, reason?) => void)
Type declaration
- (code?, reason?): void
Parameters
Optional
code: number
Optional
reason: string | Buffer
Returns void
on
Type declaration
- <T>(event, listener): WebSocketBackend
Type Parameters
T extends keyof WebSocketBackendEvents
Parameters
event: T
listener: WebSocketBackendEvents[T]
ping
ping: ((data?, mask?, cb?) => void)
Type declaration
- (data?, mask?, cb?): void
Parameters
Optional
data: any
Optional
mask: boolean
Optional
cb: ((err) => void)
Returns void
send
send: ((data, cb?) => void)
Type declaration
- (data, cb?): void
Parameters
data: any
Optional
cb: ((err?) => void)
Returns void