Interface WebServer

Index

Properties

Methods

Properties

public port: number

Methods

public close()

public listen(port: number, cb?: (request: WebServerRequest, response: WebServerResponse) => void): boolean

Parameters

  • port: number
  • cb?: (request: WebServerRequest, response: WebServerResponse) => void optional

Returns

boolean

public listen(ipAddressPort: string, cb?: (request: WebServerRequest, response: WebServerResponse) => void): boolean

Parameters

  • ipAddressPort: string
  • cb?: (request: WebServerRequest, response: WebServerResponse) => void optional

Returns

boolean