Interface IWebSocketConnectionFramed

Something that can be closed

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

Hierarchy (View Summary)

Implemented by

Properties

close: () => void

Close the underlying source.

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