Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpsServer

Hierarchy

  • Server
    • HttpsServer

Index

Properties

connections

connections: number

headersTimeout

headersTimeout: number

Limit the amount of time the parser will wait to receive the complete HTTP headers.

default

60000 https://nodejs.org/api/http.html#http_server_headerstimeout

keepAliveTimeout

keepAliveTimeout: number

listening

listening: boolean

maxConnections

maxConnections: number

maxHeadersCount

maxHeadersCount: number | null

Limits maximum incoming headers count. If set to 0, no limit will be applied.

default

2000 https://nodejs.org/api/http.html#http_server_maxheaderscount

router

router: Router = new Router()

timeout

timeout: number

Methods

addContext

  • addContext(hostName: string, credentials: SecureContextOptions): void
  • The server.addContext() method adds a secure context that will be used if the client request's SNI name matches the supplied hostname (or wildcard).

    Parameters

    • hostName: string
    • credentials: SecureContextOptions

    Returns void

addListener

  • addListener(event: string, listener: (...args: any[]) => void): this
  • addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this
  • addListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this
  • addListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this
  • addListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this
  • addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this
  • addListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this
  • events.EventEmitter

    1. tlsClientError
    2. newSession
    3. OCSPRequest
    4. resumeSession
    5. secureConnection
    6. keylog

    Parameters

    • event: string
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

  • Parameters

    • event: "tlsClientError"
    • listener: (err: Error, tlsSocket: TLSSocket) => void
        • (err: Error, tlsSocket: TLSSocket): void
        • Parameters

          • err: Error
          • tlsSocket: TLSSocket

          Returns void

    Returns this

  • Parameters

    • event: "newSession"
    • listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void
        • (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): void
        • Parameters

          • sessionId: Buffer
          • sessionData: Buffer
          • callback: (err: Error, resp: Buffer) => void
              • (err: Error, resp: Buffer): void
              • Parameters

                • err: Error
                • resp: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "OCSPRequest"
    • listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void
        • (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): void
        • Parameters

          • certificate: Buffer
          • issuer: Buffer
          • callback: (err: Error | null, resp: Buffer) => void
              • (err: Error | null, resp: Buffer): void
              • Parameters

                • err: Error | null
                • resp: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "resumeSession"
    • listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void
        • (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): void
        • Parameters

          • sessionId: Buffer
          • callback: (err: Error, sessionData: Buffer) => void
              • (err: Error, sessionData: Buffer): void
              • Parameters

                • err: Error
                • sessionData: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "secureConnection"
    • listener: (tlsSocket: TLSSocket) => void
        • (tlsSocket: TLSSocket): void
        • Parameters

          • tlsSocket: TLSSocket

          Returns void

    Returns this

  • Parameters

    • event: "keylog"
    • listener: (line: Buffer, tlsSocket: TLSSocket) => void
        • (line: Buffer, tlsSocket: TLSSocket): void
        • Parameters

          • line: Buffer
          • tlsSocket: TLSSocket

          Returns void

    Returns this

address

  • address(): AddressInfo | string | null
  • Returns AddressInfo | string | null

close

  • close(callback?: undefined | ((err?: Error) => void)): this
  • Parameters

    • Optional callback: undefined | ((err?: Error) => void)

    Returns this

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean
  • emit(event: "newSession", sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): boolean
  • emit(event: "OCSPRequest", certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): boolean
  • emit(event: "resumeSession", sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean
  • emit(event: "secureConnection", tlsSocket: TLSSocket): boolean
  • emit(event: "keylog", line: Buffer, tlsSocket: TLSSocket): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

  • Parameters

    • event: "tlsClientError"
    • err: Error
    • tlsSocket: TLSSocket

    Returns boolean

  • Parameters

    • event: "newSession"
    • sessionId: Buffer
    • sessionData: Buffer
    • callback: (err: Error, resp: Buffer) => void
        • (err: Error, resp: Buffer): void
        • Parameters

          • err: Error
          • resp: Buffer

          Returns void

    Returns boolean

  • Parameters

    • event: "OCSPRequest"
    • certificate: Buffer
    • issuer: Buffer
    • callback: (err: Error | null, resp: Buffer) => void
        • (err: Error | null, resp: Buffer): void
        • Parameters

          • err: Error | null
          • resp: Buffer

          Returns void

    Returns boolean

  • Parameters

    • event: "resumeSession"
    • sessionId: Buffer
    • callback: (err: Error, sessionData: Buffer) => void
        • (err: Error, sessionData: Buffer): void
        • Parameters

          • err: Error
          • sessionData: Buffer

          Returns void

    Returns boolean

  • Parameters

    • event: "secureConnection"
    • tlsSocket: TLSSocket

    Returns boolean

  • Parameters

    • event: "keylog"
    • line: Buffer
    • tlsSocket: TLSSocket

    Returns boolean

eventNames

  • eventNames(): Array<string | symbol>
  • Returns Array<string | symbol>

getConnections

  • getConnections(cb: (error: Error | null, count: number) => void): void
  • Parameters

    • cb: (error: Error | null, count: number) => void
        • (error: Error | null, count: number): void
        • Parameters

          • error: Error | null
          • count: number

          Returns void

    Returns void

getMaxListeners

  • getMaxListeners(): number

getTicketKeys

  • getTicketKeys(): Buffer
  • Returns the session ticket keys.

    Returns Buffer

Private handleRequest

  • Parameters

    Returns Promise<void>

Abstract handlerResponse

  • handlerResponse(context: HttpContext): void | Promise<void>
  • Parameters

    Returns void | Promise<void>

listen

  • listen(port?: undefined | number, hostname?: undefined | string, backlog?: undefined | number, listeningListener?: undefined | (() => void)): this
  • listen(port?: undefined | number, hostname?: undefined | string, listeningListener?: undefined | (() => void)): this
  • listen(port?: undefined | number, backlog?: undefined | number, listeningListener?: undefined | (() => void)): this
  • listen(port?: undefined | number, listeningListener?: undefined | (() => void)): this
  • listen(path: string, backlog?: undefined | number, listeningListener?: undefined | (() => void)): this
  • listen(path: string, listeningListener?: undefined | (() => void)): this
  • listen(options: ListenOptions, listeningListener?: undefined | (() => void)): this
  • listen(handle: any, backlog?: undefined | number, listeningListener?: undefined | (() => void)): this
  • listen(handle: any, listeningListener?: undefined | (() => void)): this
  • Parameters

    • Optional port: undefined | number
    • Optional hostname: undefined | string
    • Optional backlog: undefined | number
    • Optional listeningListener: undefined | (() => void)

    Returns this

  • Parameters

    • Optional port: undefined | number
    • Optional hostname: undefined | string
    • Optional listeningListener: undefined | (() => void)

    Returns this

  • Parameters

    • Optional port: undefined | number
    • Optional backlog: undefined | number
    • Optional listeningListener: undefined | (() => void)

    Returns this

  • Parameters

    • Optional port: undefined | number
    • Optional listeningListener: undefined | (() => void)

    Returns this

  • Parameters

    • path: string
    • Optional backlog: undefined | number
    • Optional listeningListener: undefined | (() => void)

    Returns this

  • Parameters

    • path: string
    • Optional listeningListener: undefined | (() => void)

    Returns this

  • Parameters

    • options: ListenOptions
    • Optional listeningListener: undefined | (() => void)

    Returns this

  • Parameters

    • handle: any
    • Optional backlog: undefined | number
    • Optional listeningListener: undefined | (() => void)

    Returns this

  • Parameters

    • handle: any
    • Optional listeningListener: undefined | (() => void)

    Returns this

listenerCount

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

  • off(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

on

  • on(event: string, listener: (...args: any[]) => void): this
  • on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this
  • on(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this
  • on(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this
  • on(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this
  • on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this
  • on(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this
  • Parameters

    • event: string
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

  • Parameters

    • event: "tlsClientError"
    • listener: (err: Error, tlsSocket: TLSSocket) => void
        • (err: Error, tlsSocket: TLSSocket): void
        • Parameters

          • err: Error
          • tlsSocket: TLSSocket

          Returns void

    Returns this

  • Parameters

    • event: "newSession"
    • listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void
        • (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): void
        • Parameters

          • sessionId: Buffer
          • sessionData: Buffer
          • callback: (err: Error, resp: Buffer) => void
              • (err: Error, resp: Buffer): void
              • Parameters

                • err: Error
                • resp: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "OCSPRequest"
    • listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void
        • (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): void
        • Parameters

          • certificate: Buffer
          • issuer: Buffer
          • callback: (err: Error | null, resp: Buffer) => void
              • (err: Error | null, resp: Buffer): void
              • Parameters

                • err: Error | null
                • resp: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "resumeSession"
    • listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void
        • (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): void
        • Parameters

          • sessionId: Buffer
          • callback: (err: Error, sessionData: Buffer) => void
              • (err: Error, sessionData: Buffer): void
              • Parameters

                • err: Error
                • sessionData: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "secureConnection"
    • listener: (tlsSocket: TLSSocket) => void
        • (tlsSocket: TLSSocket): void
        • Parameters

          • tlsSocket: TLSSocket

          Returns void

    Returns this

  • Parameters

    • event: "keylog"
    • listener: (line: Buffer, tlsSocket: TLSSocket) => void
        • (line: Buffer, tlsSocket: TLSSocket): void
        • Parameters

          • line: Buffer
          • tlsSocket: TLSSocket

          Returns void

    Returns this

onException

  • Type parameters

    Parameters

    Returns void

once

  • once(event: string, listener: (...args: any[]) => void): this
  • once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this
  • once(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this
  • once(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this
  • once(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this
  • once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this
  • once(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this
  • Parameters

    • event: string
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

  • Parameters

    • event: "tlsClientError"
    • listener: (err: Error, tlsSocket: TLSSocket) => void
        • (err: Error, tlsSocket: TLSSocket): void
        • Parameters

          • err: Error
          • tlsSocket: TLSSocket

          Returns void

    Returns this

  • Parameters

    • event: "newSession"
    • listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void
        • (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): void
        • Parameters

          • sessionId: Buffer
          • sessionData: Buffer
          • callback: (err: Error, resp: Buffer) => void
              • (err: Error, resp: Buffer): void
              • Parameters

                • err: Error
                • resp: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "OCSPRequest"
    • listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void
        • (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): void
        • Parameters

          • certificate: Buffer
          • issuer: Buffer
          • callback: (err: Error | null, resp: Buffer) => void
              • (err: Error | null, resp: Buffer): void
              • Parameters

                • err: Error | null
                • resp: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "resumeSession"
    • listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void
        • (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): void
        • Parameters

          • sessionId: Buffer
          • callback: (err: Error, sessionData: Buffer) => void
              • (err: Error, sessionData: Buffer): void
              • Parameters

                • err: Error
                • sessionData: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "secureConnection"
    • listener: (tlsSocket: TLSSocket) => void
        • (tlsSocket: TLSSocket): void
        • Parameters

          • tlsSocket: TLSSocket

          Returns void

    Returns this

  • Parameters

    • event: "keylog"
    • listener: (line: Buffer, tlsSocket: TLSSocket) => void
        • (line: Buffer, tlsSocket: TLSSocket): void
        • Parameters

          • line: Buffer
          • tlsSocket: TLSSocket

          Returns void

    Returns this

prependListener

  • prependListener(event: string, listener: (...args: any[]) => void): this
  • prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this
  • prependListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this
  • prependListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this
  • prependListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this
  • prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this
  • prependListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this
  • Parameters

    • event: string
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

  • Parameters

    • event: "tlsClientError"
    • listener: (err: Error, tlsSocket: TLSSocket) => void
        • (err: Error, tlsSocket: TLSSocket): void
        • Parameters

          • err: Error
          • tlsSocket: TLSSocket

          Returns void

    Returns this

  • Parameters

    • event: "newSession"
    • listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void
        • (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): void
        • Parameters

          • sessionId: Buffer
          • sessionData: Buffer
          • callback: (err: Error, resp: Buffer) => void
              • (err: Error, resp: Buffer): void
              • Parameters

                • err: Error
                • resp: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "OCSPRequest"
    • listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void
        • (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): void
        • Parameters

          • certificate: Buffer
          • issuer: Buffer
          • callback: (err: Error | null, resp: Buffer) => void
              • (err: Error | null, resp: Buffer): void
              • Parameters

                • err: Error | null
                • resp: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "resumeSession"
    • listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void
        • (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): void
        • Parameters

          • sessionId: Buffer
          • callback: (err: Error, sessionData: Buffer) => void
              • (err: Error, sessionData: Buffer): void
              • Parameters

                • err: Error
                • sessionData: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "secureConnection"
    • listener: (tlsSocket: TLSSocket) => void
        • (tlsSocket: TLSSocket): void
        • Parameters

          • tlsSocket: TLSSocket

          Returns void

    Returns this

  • Parameters

    • event: "keylog"
    • listener: (line: Buffer, tlsSocket: TLSSocket) => void
        • (line: Buffer, tlsSocket: TLSSocket): void
        • Parameters

          • line: Buffer
          • tlsSocket: TLSSocket

          Returns void

    Returns this

prependOnceListener

  • prependOnceListener(event: string, listener: (...args: any[]) => void): this
  • prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this
  • prependOnceListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this
  • prependOnceListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this
  • prependOnceListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this
  • prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this
  • prependOnceListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this
  • Parameters

    • event: string
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

  • Parameters

    • event: "tlsClientError"
    • listener: (err: Error, tlsSocket: TLSSocket) => void
        • (err: Error, tlsSocket: TLSSocket): void
        • Parameters

          • err: Error
          • tlsSocket: TLSSocket

          Returns void

    Returns this

  • Parameters

    • event: "newSession"
    • listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void
        • (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): void
        • Parameters

          • sessionId: Buffer
          • sessionData: Buffer
          • callback: (err: Error, resp: Buffer) => void
              • (err: Error, resp: Buffer): void
              • Parameters

                • err: Error
                • resp: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "OCSPRequest"
    • listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void
        • (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): void
        • Parameters

          • certificate: Buffer
          • issuer: Buffer
          • callback: (err: Error | null, resp: Buffer) => void
              • (err: Error | null, resp: Buffer): void
              • Parameters

                • err: Error | null
                • resp: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "resumeSession"
    • listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void
        • (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): void
        • Parameters

          • sessionId: Buffer
          • callback: (err: Error, sessionData: Buffer) => void
              • (err: Error, sessionData: Buffer): void
              • Parameters

                • err: Error
                • sessionData: Buffer

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "secureConnection"
    • listener: (tlsSocket: TLSSocket) => void
        • (tlsSocket: TLSSocket): void
        • Parameters

          • tlsSocket: TLSSocket

          Returns void

    Returns this

  • Parameters

    • event: "keylog"
    • listener: (line: Buffer, tlsSocket: TLSSocket) => void
        • (line: Buffer, tlsSocket: TLSSocket): void
        • Parameters

          • line: Buffer
          • tlsSocket: TLSSocket

          Returns void

    Returns this

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

ref

  • ref(): this
  • Returns this

removeAllListeners

  • removeAllListeners(event?: string | symbol): this
  • Parameters

    • Optional event: string | symbol

    Returns this

removeListener

  • removeListener(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

setMaxListeners

  • setMaxListeners(n: number): this
  • Parameters

    • n: number

    Returns this

setSecureContext

  • setSecureContext(details: SecureContextOptions): void
  • The server.setSecureContext() method replaces the secure context of an existing server. Existing connections to the server are not interrupted.

    Parameters

    • details: SecureContextOptions

    Returns void

setTicketKeys

  • setTicketKeys(keys: Buffer): void
  • The server.setSecureContext() method replaces the secure context of an existing server. Existing connections to the server are not interrupted.

    Parameters

    • keys: Buffer

    Returns void

setTimeout

  • setTimeout(msecs?: undefined | number, callback?: undefined | (() => void)): this
  • setTimeout(callback: () => void): this
  • Parameters

    • Optional msecs: undefined | number
    • Optional callback: undefined | (() => void)

    Returns this

  • Parameters

    • callback: () => void
        • (): void
        • Returns void

    Returns this

unref

  • unref(): this
  • Returns this

Static createContext

Generated using TypeDoc