Merge pull request #3399 from panuhorsmalahti/node-zeromqbuffer

Fix node-zeromq ArrayBuffer type to Buffer
This commit is contained in:
Masahiro Wakame
2015-01-02 20:14:30 +09:00
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`.