Permalink
Browse files

Merge pull request #48 from atakangktepe/master

Removed deprecation warning
  • Loading branch information...
2 parents 1fb8a34 + b6fe147 commit ef5be453c895cdfca297a4e15cf5c783d1296515 @indexzero indexzero committed Nov 3, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/nssocket.js
View
@@ -147,7 +147,7 @@ NsSocket.prototype.send = function send(event, data, callback) {
return this.emit('error', new Error('NsSocket: sending on a bad socket'));
}
- message = Buffer(this._encode(event.concat(data)) + '\n');
+ message = new Buffer(this._encode(event.concat(data)) + '\n');
if (this.socket.cleartext) {
this.socket.cleartext.write(message, callback);

0 comments on commit ef5be45

Please sign in to comment.