@seafile/sdoc-editor 0.1.154-beta1 → 0.1.154-beta2
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.
|
@@ -185,12 +185,12 @@ var SocketClient = /*#__PURE__*/_createClass(function SocketClient(config) {
|
|
|
185
185
|
this.socket.on('doc-replaced-error', this.receiveDocumentReplacedError);
|
|
186
186
|
|
|
187
187
|
// doc published
|
|
188
|
-
this.socket.on('
|
|
189
|
-
this.socket.on('
|
|
188
|
+
this.socket.on('doc-published', this.receivePublishDocument);
|
|
189
|
+
this.socket.on('doc-published-error', this.receivePublishDocumentError);
|
|
190
190
|
|
|
191
191
|
// doc removed
|
|
192
|
-
this.socket.on('
|
|
193
|
-
this.socket.on('
|
|
192
|
+
this.socket.on('doc-removed', this.receiveRemoveDocument);
|
|
193
|
+
this.socket.on('doc-removed-error', this.receiveRemoveDocumentError);
|
|
194
194
|
this.socket.on('update-cursor', this.receiveCursorLocation);
|
|
195
195
|
this.socket.io.on('reconnect', this.onReconnect);
|
|
196
196
|
this.socket.io.on('reconnect_attempt', this.onReconnectAttempt);
|