docs: function(event, cb) {
          _worker.postMessage({ cmd: 'ws_on' });
          _worker.addEventListener('message', function(e) {
            if (event === 'all' || e.data.type === event) {
              cb(e.data);
            } 
          });
        }