2.0.0 • Published 1 year ago

@rbbn/distant-werkout-daemon v2.0.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
1 year ago

Distant Werkout Daemon

Provides an implementation of Distant Werkout Daemon to be used as a partner for communication with Werkout

Factory (DWDaemon.create())

  • Asynchronous factory function
  • Accepts a callback which will be used to relay requests from Werkout
  • Returns a fully-initialized DWDaemon object

DWDaemon::onTestFinish(result)

  • Accepts test results
  • Assigns them to the results property in its Werkout partner state

Usage

const DWDaemon = require('distant-werkout-daemon')

const daemon = await DWDaemon.create(request => { console.log('Received request from daemon:', request) })
...
daemon.onTestFinish(testResults)
2.0.0

1 year ago