mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Merge branch 'zeromq-event' of https://github.com/panuhorsmalahti/DefinitelyTyped into panuhorsmalahti-zeromq-event
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user