Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

  • EventEmitter
    • Server

Index

Constructors

Properties

clients: Set<T>
path: string

Methods

  • close(cb?: (err?: Error) => void): void
  • Parameters

    • Optional cb: (err?: Error) => void
        • (err?: Error): void
        • Parameters

          • Optional err: Error

          Returns void

    Returns void

  • handleUpgrade(request: IncomingMessage, socket: Duplex, upgradeHead: Buffer, callback: (client: T, request: IncomingMessage) => void): void
  • Parameters

    • request: IncomingMessage
    • socket: Duplex
    • upgradeHead: Buffer
    • callback: (client: T, request: IncomingMessage) => void
        • (client: T, request: IncomingMessage): void
        • Parameters

          • client: T
          • request: IncomingMessage

          Returns void

    Returns void

  • shouldHandle(request: IncomingMessage): boolean | Promise<boolean>
  • Parameters

    • request: IncomingMessage

    Returns boolean | Promise<boolean>