@libp2p/http
    Preparing search index...
    interface WebSocketInit {
        drainTimeout?: number;
        handshakeTimeout?: number;
        headers: Headers;
        protocols?: string[];
        signal?: AbortSignal;
        onHandshakeResponse?(res: Response, options: AbortOptions): Promise<void>;
    }

    Hierarchy

    Index

    Properties

    drainTimeout?: number

    When the underlying transport's send buffer becomes full, it must drain within this many ms otherwise the stream will be reset

    10_000
    
    handshakeTimeout?: number

    The WebSocket handshake must complete within this many ms

    10_000
    
    headers: Headers
    protocols?: string[]
    signal?: AbortSignal

    Methods