lazynode
v0.1.0
Published
lazily call an upnode server
Downloads
4
Readme
lazynode
lazily call an upnode server
Creates a lazy object where each method calls up and then calls the method on the remote.
Example Server
var lazynode = require("..")
lazynode({
time: function (cb) {
cb(new Date().toString())
}
}).listen(8642)
Example Client
var lazynode = require("..")
var remote = lazynode.connect({
port: 8642
, methods: ["time"]
})
setInterval(function () {
remote.time(function (t) {
console.log("time = " + t)
})
}, 1000)
Installation
npm install lazynode
Contributors
- Raynos