@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.
@@ -2776,14 +2776,15 @@ class HocuspocusProvider extends EventEmitter {
2776
2776
 
2777
2777
  class TiptapCollabProviderWebsocket extends HocuspocusProviderWebsocket {
2778
2778
  constructor(configuration) {
2779
- super({ ...configuration, url: `wss://${configuration.appId}.collab.tiptap.cloud` });
2779
+ var _a;
2780
+ super({ ...configuration, url: (_a = configuration.baseUrl) !== null && _a !== void 0 ? _a : `wss://${configuration.appId}.collab.tiptap.cloud` });
2780
2781
  }
2781
2782
  }
2782
2783
 
2783
2784
  class TiptapCollabProvider extends HocuspocusProvider {
2784
2785
  constructor(configuration) {
2785
2786
  if (!configuration.websocketProvider) {
2786
- configuration.websocketProvider = new TiptapCollabProviderWebsocket({ appId: configuration.appId });
2787
+ configuration.websocketProvider = new TiptapCollabProviderWebsocket({ appId: configuration.appId, baseUrl: configuration.baseUrl });
2787
2788
  }
2788
2789
  if (!configuration.token) {
2789
2790
  configuration.token = 'notoken'; // need to send a token anyway (which will be ignored)