code: function onSocketChunk(chunk) {
          var err = self.mach.handleChunk(chunk);
          if (err) {
              self.sendProtocolError('read', err);
          }
      }
docs: TODO: move to method for function optimization