Interface WebSocketInterface
interface WebSocketInterface { on(event: string | symbol,
listener: ((...args: any[]) => void)): this; once(event: string | symbol,
listener: ((...args: any[]) => void)): this; removeAllListeners(event?: string | symbol): this; removeListener(event: string | symbol,
listener: ((...args: any[]) => void)): this; start(): void; stop(): void; } Methods
on
- on(event, listener): this
Parameters
- event: string | symbol
- listener: ((...args: any[]) => void)
- (...args): void
Returns void
Returns this
once
- once(event, listener): this
Parameters
- event: string | symbol
- listener: ((...args: any[]) => void)
- (...args): void
Returns void
Returns this
removeAllListeners
- removeAllListeners(event?): this
Parameters
Optional
event: string | symbol
Returns this
removeListener
- removeListener(event, listener): this
Parameters
- event: string | symbol
- listener: ((...args: any[]) => void)
- (...args): void
Returns void
Returns this
start
- start(): void
Returns void