0.1.0 • Published 12 years ago

lazynode v0.1.0

Weekly downloads
1
License
-
Repository
github
Last release
12 years ago

lazynode build status

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

MIT Licenced

0.1.0

12 years ago

0.0.1

12 years ago