Fix node-zeromq ArrayBuffer type to Buffer

This commit is contained in:
Panu Horsmalahti
2015-01-02 11:17:03 +02:00
parent 9872b853d6
commit 17910ab391
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ function test1() {
function test2() {
var sock = zmq.socket('push');
sock.bindSync('tcp://127.0.0.1:3000');
sock.send(new ArrayBuffer(1000));
sock.send(new Buffer(1000));
}
function test3() {
+3 -3
View File
@@ -133,10 +133,10 @@ declare module 'zmq' {
/**
* Send the given `msg`.
*
* @param msg The message
* @param flags Message flags
* @param msg {Buffer} The message
* @param flags {number} Optional message flags
*/
send(msg: ArrayBuffer, flags?: number): Socket;
send(msg: Buffer, flags?: number): Socket;
/**
* Send the given `msg`.