Created
September 16, 2010 00:57
-
-
Save anonymous/581780 to your computer and use it in GitHub Desktop.
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
#!/opt/node/bin/node | |
var zmq = require('./lib/zeromq'); | |
var ctx = new zmq.Context(); | |
console.log("Context() created."); | |
var sock = new zmq.Socket(ctx, zmq.Socket.ZMQ_REQ); | |
console.log("Socket() created."); | |
sock.connect('tcp://127.0.0.1:5554'); | |
console.log("connected"); | |
sock.send(new Buffer("Testing Testing 1 2 3")); | |
console.log("sent buffer on socket"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment