0.2.8 • Published 9 months ago

up4w-service v0.2.8

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

up4w-service

Detecting the system architecture at runtime, launching the corresponding underlying UP4W network. In Linux systems, it will run up4w.so, in macOS it will run up4w.dylib, and in Windows it will run up4w.dll.

import UP4WService from "up4w-service"
import UP4WJS from "up4w-js"

const service = new UP4WService()
async function start() {
  const resp = await service.run()
  const {
    availableEndpoint: { ws },
  } = resp
  // output: ws://127.0.0.1:52416/api
  // `52416` is a random port number.
  const up4w = new UP4WJS(ws)
  // do your stuff...
}

up4wjs

service.run()

Running the underlying UP4W program.

Parameters: none
Returns:

Promise resolved with a object

  • availableEndpoint object
    • ws string Available websocket endpoint, with randomly assigned port number that may vary each time it is started
    • http string Available http endpoint, also with randomly assigned port number
0.2.8

9 months ago

0.2.7

9 months ago

0.2.6

9 months ago

0.2.5

10 months ago

0.2.4

11 months ago

0.2.3

11 months ago

0.2.2

11 months ago

0.2.1

11 months ago

0.2.0

12 months ago

0.1.5

12 months ago