@hocuspocus/provider 2.6.0 → 2.6.1

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.
@@ -2730,11 +2730,16 @@ class HocuspocusProvider extends EventEmitter {
2730
2730
  this.subscribedToBroadcastChannel = true;
2731
2731
  }
2732
2732
  this.mux(() => {
2733
- this.broadcast(SyncStepOneMessage, { document: this.document });
2734
- this.broadcast(SyncStepTwoMessage, { document: this.document });
2735
- this.broadcast(QueryAwarenessMessage, { document: this.document });
2733
+ this.broadcast(SyncStepOneMessage, { document: this.document, documentName: this.configuration.name });
2734
+ this.broadcast(SyncStepTwoMessage, { document: this.document, documentName: this.configuration.name });
2735
+ this.broadcast(QueryAwarenessMessage, { document: this.document, documentName: this.configuration.name });
2736
2736
  if (this.awareness) {
2737
- this.broadcast(AwarenessMessage, { awareness: this.awareness, clients: [this.document.clientID], document: this.document });
2737
+ this.broadcast(AwarenessMessage, {
2738
+ awareness: this.awareness,
2739
+ clients: [this.document.clientID],
2740
+ document: this.document,
2741
+ documentName: this.configuration.name,
2742
+ });
2738
2743
  }
2739
2744
  });
2740
2745
  }