nodevms-client

2.0.0 • Public • Published

NodeVMS Client

RPC client library for NodeVMS.

const NodeVMSClient = require('nodevms-client')

// example usage
var rpc = new NodeVMSClient()
await rpc.connect('ws://localhost:5555')
await rpc.ping()
rpc.close()

// can also use 'ready' event
var rpc = new NodeVMSClient()
rpc.connect('ws://localhost:5555')
rpc.on('ready', async () => {
  await rpc.ping()
})

// opts:
var rpc = new NodeVMSClient({
  timeout: Number, ms (default 5000)
})
rpc.connect(url, {
  user: String, the user to authenticate as (default null)
})

Readme

Keywords

Package Sidebar

Install

npm i nodevms-client

Weekly Downloads

2

Version

2.0.0

License

MIT

Last publish

Collaborators

  • pfraze