Lines Matching refs:cb
516 WebSocketConnection.prototype.send = function(data, cb) { argument
519 this.sendBytes(data, cb);
522 this.sendUTF(data, cb);
529 WebSocketConnection.prototype.sendUTF = function(data, cb) { argument
537 this.fragmentAndSend(frame, cb);
540 WebSocketConnection.prototype.sendBytes = function(data, cb) { argument
550 this.fragmentAndSend(frame, cb);
591 WebSocketConnection.prototype.fragmentAndSend = function(frame, cb) { argument
604 this.sendFrame(frame, cb);
612 if (typeof cb === 'function') {
614 cb(err);
615 cb = null;
620 if ((sentFragments === numFragments) && (typeof cb === 'function')) {
621 cb();
644 WebSocketConnection.prototype.sendCloseFrame = function(reasonCode, description, cb) { argument
661 this.sendFrame(frame, cb);
667 WebSocketConnection.prototype.sendFrame = function(frame, cb) { argument
674 if (typeof cb === 'function') {
675 cb();