libp2p
    Preparing search index...

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

    const controller = new AbortController()

    aLongRunningOperation({
    signal: controller.signal
    })

    // later

    controller.abort
    interface WebSocketsInit {
        closeOnEnd?: boolean;
        filter?: MultiaddrFilter;
        http?: ServerOptions<typeof IncomingMessage, typeof ServerResponse>;
        https?: ServerOptions<typeof IncomingMessage, typeof ServerResponse>;
        inboundConnectionUpgradeTimeout?: number;
        signal?: AbortSignal;
        websocket?: ClientOptions;
    }

    Hierarchy (View Summary)

    Index

    Properties

    closeOnEnd?: boolean

    Use a ConnectionGater instead

    Options used to create the HTTP server

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

    inboundConnectionUpgradeTimeout?: number

    Inbound connections must complete their upgrade within this many ms

    Use the connectionManager.inboundUpgradeTimeout libp2p config key instead

    signal?: AbortSignal
    websocket?: ClientOptions

    Options used to create WebSockets