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

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.
@@ -1906,8 +1906,8 @@ class HocuspocusProvider extends EventEmitter {
1906
1906
  ws.onmessage = this.onMessage.bind(this);
1907
1907
  ws.onclose = this.onClose.bind(this);
1908
1908
  ws.onopen = this.onOpen.bind(this);
1909
- ws.onerror = () => {
1910
- reject();
1909
+ ws.onerror = (err) => {
1910
+ reject(err);
1911
1911
  };
1912
1912
  this.webSocket = ws;
1913
1913
  // Reset the status