lib/client.js
function _data(data) {
  if(this.tcp) {
    this.decoder.write(data);
  // connected to an in-process server,
  // emit the reply from the server socket
  }else{
    if(data instanceof Error) {
      this.emit('reply', data, null);
    }else{
      this.emit('reply', null, data);
    }
  }
}
function _data(data) {
  if(this.tcp) {
    this.decoder.write(data);
  // connected to an in-process server,
  // emit the reply from the server socket
  }else{
    if(data instanceof Error) {
      this.emit('reply', data, null);
    }else{
      this.emit('reply', null, data);
    }
  }
}
function _data ( data ) { if ( this . tcp ) { this . decoder . write ( data ) ; // connected to an in-process server, // emit the reply from the server socket } else { if ( data instanceof Error ) { this . emit ( 'reply' , data , null ) ; } else { this . emit ( 'reply' , null , data ) ; } } }
Listener for the socket data event.
Listener for the socket data event .