Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

viva-server-http

viva-shared11MIT3.0.2

simple http server

http

readme

Classes

Server_http

(license MIT) simple http server, full example - see example.js

Typedefs

type_pair

Server_http

(license MIT) simple http server, full example - see example.js

Kind: global class

server_http.ip

{string}

Kind: instance property of Server_http

server_http.port

{number}

Kind: instance property of Server_http

server_http.server

{any}

Kind: instance property of Server_http

server_http.emit

{any}

Kind: instance property of Server_http

server_http.on

{any}

Kind: instance property of Server_http

server_http.start([ip], [port])

start http server

Kind: instance method of Server_http

Param Type Description
[ip] string ip, default 127.0.0.1
[port] number port, default 3000

type_pair

Kind: global typedef
Properties

Name Type Description
variable string variable
[value] any value