code: function onData(chunk) {  // {{{2
    if (this._ws && this._ws.isConnected()) {
      this._ws.tx({
        type: 'chunk',
        lid: this._lid,
        data: chunk,
      });
      return;
    }
  
    close(this);
    return;
  }
docs: Event Handlers {{{1