@hocuspocus/provider 2.9.0-rc.0 → 2.9.1-rc.0

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.
@@ -2800,14 +2800,15 @@ class HocuspocusProvider extends EventEmitter {
2800
2800
 
2801
2801
  class TiptapCollabProviderWebsocket extends HocuspocusProviderWebsocket {
2802
2802
  constructor(configuration) {
2803
- super({ ...configuration, url: `wss://${configuration.appId}.collab.tiptap.cloud` });
2803
+ var _a;
2804
+ super({ ...configuration, url: (_a = configuration.baseUrl) !== null && _a !== void 0 ? _a : `wss://${configuration.appId}.collab.tiptap.cloud` });
2804
2805
  }
2805
2806
  }
2806
2807
 
2807
2808
  class TiptapCollabProvider extends HocuspocusProvider {
2808
2809
  constructor(configuration) {
2809
2810
  if (!configuration.websocketProvider) {
2810
- configuration.websocketProvider = new TiptapCollabProviderWebsocket({ appId: configuration.appId });
2811
+ configuration.websocketProvider = new TiptapCollabProviderWebsocket({ appId: configuration.appId, baseUrl: configuration.baseUrl });
2811
2812
  }
2812
2813
  if (!configuration.token) {
2813
2814
  configuration.token = 'notoken'; // need to send a token anyway (which will be ignored)