@hocuspocus/provider 1.0.0-alpha.38 → 1.0.0-alpha.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1882,8 +1882,8 @@ class HocuspocusProvider extends EventEmitter {
1882
1882
  ws.onmessage = this.onMessage.bind(this);
1883
1883
  ws.onclose = this.onClose.bind(this);
1884
1884
  ws.onopen = this.onOpen.bind(this);
1885
- ws.onerror = () => {
1886
- reject();
1885
+ ws.onerror = (err) => {
1886
+ reject(err);
1887
1887
  };
1888
1888
  this.webSocket = ws;
1889
1889
  // Reset the status