Methods
onClose
- onClose(cb: ((code: number, reason: string) => void)): void
Parameters
cb: ((code: number, reason: string) => void)
- (code: number, reason: string): void
Parameters
code: number
reason: string
Returns void
Returns void
onError
- onError(cb: ((reason: unknown) => void)): void
Parameters
cb: ((reason: unknown) => void)
Returns void
onMessage
- onMessage(cb: ((message: string) => void)): void
Parameters
cb: ((message: string) => void)
Returns void
send
- send(content: string): void
A closeable channel to send debug protocol messages over with error/close handling