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

Implemented by

Properties

Methods

Properties

onMessage: OEvent<((message: string | Uint8Array) => void)>

Methods