Created
June 2, 2015 18:47
-
-
Save thelinuxlich/a2397a5fd0768603e8e7 to your computer and use it in GitHub Desktop.
Client impl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const nano = require("nanomsg"), | |
rep = nano.socket("rep"); | |
rep.connect("tcp://127.0.0.1:7000"); | |
rep.on("message", function(buf) { | |
console.log(buf.toString()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment