@xuda.io/xuda-worker-bundle-min 1.3.513 → 1.3.514
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.
- package/index.js +10 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5824,6 +5824,16 @@ func.utils.ws_worker.functions = {
|
|
|
5824
5824
|
data: params,
|
|
5825
5825
|
});
|
|
5826
5826
|
},
|
|
5827
|
+
return_doc_from_websocket: function (params) {
|
|
5828
|
+
var SESSION_ID = params.session_id;
|
|
5829
|
+
function emitCustomEvent(eventName, detail) {
|
|
5830
|
+
const event = new CustomEvent(eventName, { detail });
|
|
5831
|
+
self.dispatchEvent(event);
|
|
5832
|
+
}
|
|
5833
|
+
emitCustomEvent("get_doc_obj_from_build_worker_" + params._id, {
|
|
5834
|
+
data: params,
|
|
5835
|
+
});
|
|
5836
|
+
},
|
|
5827
5837
|
heartbeat: async function (params) {
|
|
5828
5838
|
var SESSION_ID = params.session_id;
|
|
5829
5839
|
|