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;
    server?: Server<typeof IncomingMessage, typeof ServerResponse>;
    signal?: AbortSignal;
    websocket?: ClientOptions;
}

Hierarchy (view full)

Properties

closeOnEnd?: boolean
server?: Server<typeof IncomingMessage, typeof ServerResponse>
signal?: AbortSignal
websocket?: ClientOptions