Server | typescript
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

connections

connections: number

maxConnections

maxConnections: number

Static defaultMaxListeners

defaultMaxListeners: number

Methods

addContext

  • addContext(hostName: string, credentials: object): void
  • Parameters

    • hostName: string
    • credentials: object
      • ca: string
      • cert: string
      • key: string

    Returns void

addListener

  • addListener(event: string, listener: Function): this
  • addListener(event: "tlsClientError", listener: function): this
  • addListener(event: "newSession", listener: function): this
  • addListener(event: "OCSPRequest", listener: function): this
  • addListener(event: "resumeSession", listener: function): this
  • addListener(event: "secureConnection", listener: function): this
  • events.EventEmitter

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

    Parameters

    • event: string
    • listener: Function

    Returns this

  • Parameters

    • event: "tlsClientError"
    • listener: function
        • Parameters

          Returns void

    Returns this

  • Parameters

    • event: "newSession"
    • listener: function
        • (sessionId: any, sessionData: any, callback: function): void
        • Parameters

          • sessionId: any
          • sessionData: any
          • callback: function
              • (err: Error, resp: Buffer): void
              • Parameters

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "OCSPRequest"
    • listener: function
        • (certificate: Buffer, issuer: Buffer, callback: Function): void
        • Parameters

          Returns void

    Returns this

  • Parameters

    • event: "resumeSession"
    • listener: function
        • (sessionId: any, callback: function): void
        • Parameters

          • sessionId: any
          • callback: function
              • (err: Error, sessionData: any): void
              • Parameters

                • err: Error
                • sessionData: any

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "secureConnection"
    • listener: function

    Returns this

address

  • address(): object
  • Returns object

    • address: string
    • family: string
    • port: number

close

  • close(callback?: Function): Server
  • Parameters

    • Optional callback: Function

    Returns Server

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean
  • emit(event: "newSession", sessionId: any, sessionData: any, callback: function): boolean
  • emit(event: "OCSPRequest", certificate: Buffer, issuer: Buffer, callback: Function): boolean
  • emit(event: "resumeSession", sessionId: any, callback: function): boolean
  • emit(event: "secureConnection", 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: any
    • sessionData: any
    • callback: function
        • (err: Error, resp: Buffer): void
        • Parameters

          Returns void

    Returns boolean

  • Parameters

    • event: "OCSPRequest"
    • certificate: Buffer
    • issuer: Buffer
    • callback: Function

    Returns boolean

  • Parameters

    • event: "resumeSession"
    • sessionId: any
    • callback: function
        • (err: Error, sessionData: any): void
        • Parameters

          • err: Error
          • sessionData: any

          Returns void

    Returns boolean

  • Parameters

    • event: "secureConnection"
    • tlsSocket: TLSSocket

    Returns boolean

eventNames

  • eventNames(): (string | symbol)[]

getConnections

  • getConnections(cb: function): void
  • Parameters

    • cb: function
        • (error: Error, count: number): void
        • Parameters

          • error: Error
          • count: number

          Returns void

    Returns void

getMaxListeners

  • getMaxListeners(): number

listen

  • listen(port: number, hostname?: string, backlog?: number, listeningListener?: Function): Server
  • listen(port: number, hostname?: string, listeningListener?: Function): Server
  • listen(port: number, backlog?: number, listeningListener?: Function): Server
  • listen(port: number, listeningListener?: Function): Server
  • listen(path: string, backlog?: number, listeningListener?: Function): Server
  • listen(path: string, listeningListener?: Function): Server
  • listen(options: ListenOptions, listeningListener?: Function): Server
  • listen(handle: any, backlog?: number, listeningListener?: Function): Server
  • listen(handle: any, listeningListener?: Function): Server
  • Parameters

    • port: number
    • Optional hostname: string
    • Optional backlog: number
    • Optional listeningListener: Function

    Returns Server

  • Parameters

    • port: number
    • Optional hostname: string
    • Optional listeningListener: Function

    Returns Server

  • Parameters

    • port: number
    • Optional backlog: number
    • Optional listeningListener: Function

    Returns Server

  • Parameters

    • port: number
    • Optional listeningListener: Function

    Returns Server

  • Parameters

    • path: string
    • Optional backlog: number
    • Optional listeningListener: Function

    Returns Server

  • Parameters

    • path: string
    • Optional listeningListener: Function

    Returns Server

  • Parameters

    Returns Server

  • Parameters

    • handle: any
    • Optional backlog: number
    • Optional listeningListener: Function

    Returns Server

  • Parameters

    • handle: any
    • Optional listeningListener: Function

    Returns Server

listenerCount

  • listenerCount(type: string | symbol): number

listeners

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

    • event: string | symbol

    Returns Function[]

on

  • on(event: string, listener: Function): this
  • on(event: "tlsClientError", listener: function): this
  • on(event: "newSession", listener: function): this
  • on(event: "OCSPRequest", listener: function): this
  • on(event: "resumeSession", listener: function): this
  • on(event: "secureConnection", listener: function): this
  • Parameters

    • event: string
    • listener: Function

    Returns this

  • Parameters

    • event: "tlsClientError"
    • listener: function
        • Parameters

          Returns void

    Returns this

  • Parameters

    • event: "newSession"
    • listener: function
        • (sessionId: any, sessionData: any, callback: function): void
        • Parameters

          • sessionId: any
          • sessionData: any
          • callback: function
              • (err: Error, resp: Buffer): void
              • Parameters

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "OCSPRequest"
    • listener: function
        • (certificate: Buffer, issuer: Buffer, callback: Function): void
        • Parameters

          Returns void

    Returns this

  • Parameters

    • event: "resumeSession"
    • listener: function
        • (sessionId: any, callback: function): void
        • Parameters

          • sessionId: any
          • callback: function
              • (err: Error, sessionData: any): void
              • Parameters

                • err: Error
                • sessionData: any

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "secureConnection"
    • listener: function

    Returns this

once

  • once(event: string, listener: Function): this
  • once(event: "tlsClientError", listener: function): this
  • once(event: "newSession", listener: function): this
  • once(event: "OCSPRequest", listener: function): this
  • once(event: "resumeSession", listener: function): this
  • once(event: "secureConnection", listener: function): this
  • Parameters

    • event: string
    • listener: Function

    Returns this

  • Parameters

    • event: "tlsClientError"
    • listener: function
        • Parameters

          Returns void

    Returns this

  • Parameters

    • event: "newSession"
    • listener: function
        • (sessionId: any, sessionData: any, callback: function): void
        • Parameters

          • sessionId: any
          • sessionData: any
          • callback: function
              • (err: Error, resp: Buffer): void
              • Parameters

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "OCSPRequest"
    • listener: function
        • (certificate: Buffer, issuer: Buffer, callback: Function): void
        • Parameters

          Returns void

    Returns this

  • Parameters

    • event: "resumeSession"
    • listener: function
        • (sessionId: any, callback: function): void
        • Parameters

          • sessionId: any
          • callback: function
              • (err: Error, sessionData: any): void
              • Parameters

                • err: Error
                • sessionData: any

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "secureConnection"
    • listener: function

    Returns this

prependListener

  • prependListener(event: string, listener: Function): this
  • prependListener(event: "tlsClientError", listener: function): this
  • prependListener(event: "newSession", listener: function): this
  • prependListener(event: "OCSPRequest", listener: function): this
  • prependListener(event: "resumeSession", listener: function): this
  • prependListener(event: "secureConnection", listener: function): this
  • Parameters

    • event: string
    • listener: Function

    Returns this

  • Parameters

    • event: "tlsClientError"
    • listener: function
        • Parameters

          Returns void

    Returns this

  • Parameters

    • event: "newSession"
    • listener: function
        • (sessionId: any, sessionData: any, callback: function): void
        • Parameters

          • sessionId: any
          • sessionData: any
          • callback: function
              • (err: Error, resp: Buffer): void
              • Parameters

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "OCSPRequest"
    • listener: function
        • (certificate: Buffer, issuer: Buffer, callback: Function): void
        • Parameters

          Returns void

    Returns this

  • Parameters

    • event: "resumeSession"
    • listener: function
        • (sessionId: any, callback: function): void
        • Parameters

          • sessionId: any
          • callback: function
              • (err: Error, sessionData: any): void
              • Parameters

                • err: Error
                • sessionData: any

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "secureConnection"
    • listener: function

    Returns this

prependOnceListener

  • prependOnceListener(event: string, listener: Function): this
  • prependOnceListener(event: "tlsClientError", listener: function): this
  • prependOnceListener(event: "newSession", listener: function): this
  • prependOnceListener(event: "OCSPRequest", listener: function): this
  • prependOnceListener(event: "resumeSession", listener: function): this
  • prependOnceListener(event: "secureConnection", listener: function): this
  • Parameters

    • event: string
    • listener: Function

    Returns this

  • Parameters

    • event: "tlsClientError"
    • listener: function
        • Parameters

          Returns void

    Returns this

  • Parameters

    • event: "newSession"
    • listener: function
        • (sessionId: any, sessionData: any, callback: function): void
        • Parameters

          • sessionId: any
          • sessionData: any
          • callback: function
              • (err: Error, resp: Buffer): void
              • Parameters

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "OCSPRequest"
    • listener: function
        • (certificate: Buffer, issuer: Buffer, callback: Function): void
        • Parameters

          Returns void

    Returns this

  • Parameters

    • event: "resumeSession"
    • listener: function
        • (sessionId: any, callback: function): void
        • Parameters

          • sessionId: any
          • callback: function
              • (err: Error, sessionData: any): void
              • Parameters

                • err: Error
                • sessionData: any

                Returns void

          Returns void

    Returns this

  • Parameters

    • event: "secureConnection"
    • listener: function

    Returns this

ref

  • Returns Server

removeAllListeners

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

removeListener

  • removeListener(event: string | symbol, listener: Function): this

setMaxListeners

  • setMaxListeners(n: number): this

unref

  • Returns Server

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number
  • Parameters

    Returns number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc