interface IConnection { onMessage: OEvent<((message: string | Uint8Array) => void)>; close(reason?: string): void; send(data: string | Uint8Array): void; terminate(reason?: string): void; } Properties
onMessage
onMessage: OEvent<((message: string | Uint8Array) => void)> Methods
close
- close(reason?): void
Returns void
send
- send(data): void
Parameters
- data: string | Uint8Array
Returns void
terminate
- terminate(reason?): void
Returns void