@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.
|
@@ -2706,11 +2706,16 @@ class HocuspocusProvider extends EventEmitter {
|
|
|
2706
2706
|
this.subscribedToBroadcastChannel = true;
|
|
2707
2707
|
}
|
|
2708
2708
|
this.mux(() => {
|
|
2709
|
-
this.broadcast(SyncStepOneMessage, { document: this.document });
|
|
2710
|
-
this.broadcast(SyncStepTwoMessage, { document: this.document });
|
|
2711
|
-
this.broadcast(QueryAwarenessMessage, { document: this.document });
|
|
2709
|
+
this.broadcast(SyncStepOneMessage, { document: this.document, documentName: this.configuration.name });
|
|
2710
|
+
this.broadcast(SyncStepTwoMessage, { document: this.document, documentName: this.configuration.name });
|
|
2711
|
+
this.broadcast(QueryAwarenessMessage, { document: this.document, documentName: this.configuration.name });
|
|
2712
2712
|
if (this.awareness) {
|
|
2713
|
-
this.broadcast(AwarenessMessage, {
|
|
2713
|
+
this.broadcast(AwarenessMessage, {
|
|
2714
|
+
awareness: this.awareness,
|
|
2715
|
+
clients: [this.document.clientID],
|
|
2716
|
+
document: this.document,
|
|
2717
|
+
documentName: this.configuration.name,
|
|
2718
|
+
});
|
|
2714
2719
|
}
|
|
2715
2720
|
});
|
|
2716
2721
|
}
|