Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pfrazee/nodevms-client
RPC client library for NodeVMS.
https://github.com/pfrazee/nodevms-client
Last synced: 11 days ago
JSON representation
RPC client library for NodeVMS.
- Host: GitHub
- URL: https://github.com/pfrazee/nodevms-client
- Owner: pfrazee
- Created: 2017-08-05T18:36:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-09T01:18:44.000Z (over 7 years ago)
- Last Synced: 2024-11-30T16:17:22.616Z (29 days ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NodeVMS Client
RPC client library for [NodeVMS](https://npm.im/nodevms).
```js
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)
})
```