Interface IWebSocketConnectionFramed

Something that can be closed

interface IWebSocketConnectionFramed {
    close: () => void;
    readFrame: () => Promise<string | Uint8Array<ArrayBufferLike>>;
    writeFrame: (frame: string | Uint8Array<ArrayBufferLike>) => Promise<void>;
}

Hierarchy (View Summary)

Implemented by

Properties

close: () => void

Close the underlying source.

readFrame: () => Promise<string | Uint8Array<ArrayBufferLike>>
writeFrame: (frame: string | Uint8Array<ArrayBufferLike>) => Promise<void>