Class ServerOptions

Hierarchy

  • ServerOptions

Constructors

Properties

Constructors

Properties

middleware?: ((socket, next) => void)[] = []

Type declaration

    • (socket, next): void
    • Parameters

      • socket: Socket<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>
      • next: ((err?) => void)
          • (err?): void
          • Parameters

            • Optional err: ExtendedError

            Returns void

      Returns void

path: string = '/'
srv: Server<typeof IncomingMessage, typeof ServerResponse> | Server<typeof IncomingMessage, typeof ServerResponse> | Server<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>