⚠️ Internal: This API is not publically exported by the package.
interface UpgradeOptions {
    headers?: string[] | IncomingHttpHeaders;
    maxRedirections?: number;
    method?: string;
    path: string;
    protocol?: string;
    redirectionLimitReached?: boolean;
    responseHeader?: "raw";
    signal?: unknown;
}

Properties

headers?: string[] | IncomingHttpHeaders

Default: null

maxRedirections?: number

Default: 0

method?: string

Default: 'GET'

path: string
protocol?: string

A string of comma separated protocols, in descending preference order. Default: 'Websocket'

redirectionLimitReached?: boolean

Default: false

responseHeader?: "raw"

Default: null

signal?: unknown

Default: null