code: function write(data, cb) {
    if(this._tcp) {
      //this.emit('output', data);
      this.encoder.write(data, cb);
    }else{
      this._socket.write.call(this._socket, data, cb);
    }
  }
docs: Proxy write to the underlying socket.