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

Example

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 full)

Properties

closeOnEnd?: boolean

Deprecated

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

Default

5000
signal?: AbortSignal
websocket?: ClientOptions

Options used to create WebSockets