Interface Channel

interface Channel {
    closed: boolean;
    destroyed: boolean;
    id: Buffer;
    messages: Message[];
    opened: boolean;
    protocol: string;
    userData: any;
    addMessage(opts?: Partial<Pick<Message, "onmessage" | "encoding">>): Message;
    close(): void;
    cork(): void;
    open(handshake?: any): void;
    uncork(): void;
}

Properties

closed: boolean
destroyed: boolean
id: Buffer
messages: Message[]
opened: boolean
protocol: string
userData: any

Methods

  • Parameters

    • Optionalopts: Partial<Pick<Message, "onmessage" | "encoding">>

    Returns Message

  • Returns void

  • Returns void

  • Parameters

    • Optionalhandshake: any

    Returns void

  • Returns void