clojure Node.js messaging through zeromq-async
Clojure receive message from Node.js through Zeromq —— RPC is possible !
NOTE
- make sure you have Node.js and npm installed
- this is a lein project, be sure you have lein installed
Usage
$ # in terminal 1
$ git clone https://github.com/WeweTom/clojure-nodejs-zeromq-async-demo.git
$ cd node-code
$ npm install # Node.js deps
$ node zeromq-push-server.js # 1. now you have setup a ZeroMQ push server
$ # in terminal 2
$ node zeromq-pull-client.js # 2. now you have setup a ZeroMQ pull client , you will get messages in terminal
$ # in terminal 3 , cd to lein project root : clojure-nodejs-zeromq-async-demo
$ lein repl # after some deps installed , the repl launched
$ (start-clj-pull-client) # 3. in lein repl excute the function, now setup a ZeroMQ pull client in Clojure !!
License
Copyright © 2014 FIXME
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.