Permalink
Browse files

socket: added `Socket#write`

  • Loading branch information...
1 parent 01e06d7 commit 12f1821f1c631ca834ec9fe5a0d94d987ae7f8f3 @rauchg rauchg committed Dec 17, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/socket.js
View
@@ -260,7 +260,8 @@ Socket.prototype.setupSendCallback = function () {
* @api public
*/
-Socket.prototype.send = function (data, callback) {
+Socket.prototype.send =
+Socket.prototype.write = function(data, callback){
this.sendPacket('message', data, callback);
return this;
};

0 comments on commit 12f1821

Please sign in to comment.