docs: function streamOn(name, fn) {
          var str,
              handle;
          if (typeof name === 'string') {
              str = name;
              name = {
                  test: function (val) {
                      return val === str;
                  }
              };
          }
          /**
           * @callback {EventStream.handle}
           * @param chunk
           * @type {function}
           */
          handle = function (chunk) {
              if (name.test(chunk.name)) {
                  fn(chunk.data);
              }
          };
          this.eventStreamListeners.push(handle);
          return handle;
      }