node-webserver
    Preparing search index...

    Class WebServer<TServerConfig>

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    • get nestedRouters(): readonly NestedRouter[]

      Returns readonly NestedRouter[]

    Methods

    • Returns string | AddressInfo | null

    • Check if the router can handle a WebSocket connection for the given path This is used during the upgrade process to validate routes before attempting connection

      Parameters

      Returns Promise<boolean>

    • Parameters

      • Optionalcallback: (err?: Error) => void

      Returns void

    • Parameters

      • path_or_prefix: string
      • Optionalmethod: "GET" | "PUT" | "POST" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS"

      Returns this

    • Parameters

      • Optionalport: number
      • Optionalhostname: string
      • Optionalbacklog: number
      • OptionallisteningListener: () => void

      Returns this

    • Parameters

      • Optionalport: number
      • Optionalhostname: string
      • OptionallisteningListener: () => void

      Returns this

    • Parameters

      • Optionalport: number
      • Optionalbacklog: number
      • OptionallisteningListener: () => void

      Returns this

    • Parameters

      • Optionalport: number
      • OptionallisteningListener: () => void

      Returns this

    • Parameters

      • path: string
      • Optionalbacklog: number
      • OptionallisteningListener: () => void

      Returns this

    • Parameters

      • path: string
      • OptionallisteningListener: () => void

      Returns this

    • Parameters

      • options: ListenOptions
      • OptionallisteningListener: () => void

      Returns this

    • Parameters

      • handle: any
      • Optionalbacklog: number
      • OptionallisteningListener: () => void

      Returns this

    • Parameters

      • handle: any
      • OptionallisteningListener: () => void

      Returns this

    post

    POST