libp2p
    Preparing search index...

    Interface WebSocketsInit

    An object that contains an AbortSignal as the optional signal property.

    const controller = new AbortController()

    aLongRunningOperation({
    signal: controller.signal
    })

    // later

    controller.abort
    interface WebSocketsInit {
        bufferedAmountPollInterval?: number;
        http?: ServerOptions<typeof IncomingMessage, typeof ServerResponse>;
        https?: ServerOptions<typeof IncomingMessage, typeof ServerResponse>;
        maxBufferedAmount?: number;
        signal?: AbortSignal;
    }

    Hierarchy (View Summary)

    Index

    Properties

    bufferedAmountPollInterval?: number

    If the bufferedAmount property of a WebSocket exceeds maxBufferedAmount, poll the field every this number of ms to see if the socket can accept new data.

    500
    

    Options used to create the HTTP server

    Options used to create the HTTPs server. options.http will be used if unspecified.

    maxBufferedAmount?: number

    How large the outgoing bufferedAmount property of incoming and outgoing websockets is allowed to get in bytes.

    If this limit is exceeded, backpressure will be applied to the writer.

    4_194_304
    
    signal?: AbortSignal