Merge branch 'zeromq-event' of https://github.com/panuhorsmalahti/DefinitelyTyped into panuhorsmalahti-zeromq-event

This commit is contained in:
vvakame
2014-12-11 23:33:07 +09:00
2 changed files with 13 additions and 0 deletions
+4
View File
@@ -1,4 +1,5 @@
/// <reference path='zmq.d.ts' />
/// <reference path='../node/node-0.11.d.ts' />
import zmq = require('zmq');
@@ -18,6 +19,9 @@ function test3() {
var sock = zmq.socket('push');
sock.bindSync('tcp://127.0.0.1:3000');
sock.send(['hello', 'world']);
sock.on('message', function (buffer: Buffer) {
//
});
}
function test4() {