Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jul 14, 2012
1 parent b7f8a60 commit 84951a7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/sockets/push.js
Expand Up @@ -29,6 +29,13 @@ function PushSocket() {


PushSocket.prototype.__proto__ = Queue.prototype; PushSocket.prototype.__proto__ = Queue.prototype;


/**
* Send `msg` to all established peers.
*
* @param {Mixed} msg
* @api private
*/

PushSocket.prototype.sendToPeers = function(msg){ PushSocket.prototype.sendToPeers = function(msg){
var socks = this.socks var socks = this.socks
, len = socks.length , len = socks.length
Expand All @@ -42,6 +49,13 @@ PushSocket.prototype.sendToPeers = function(msg){
} }
}; };


/**
* Send `msg` to established peer.
*
* @param {Mixed} msg
* @api private
*/

PushSocket.prototype.sendToPeer = function(msg){ PushSocket.prototype.sendToPeer = function(msg){
var sock = this.sock var sock = this.sock
, codec = this.parser.codec; , codec = this.parser.codec;
Expand Down

0 comments on commit 84951a7

Please sign in to comment.