decord/alpha/source/modules/gateway/PostConnectionCallbackStore.tsx

40 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 6055
// Function ID: 6056
// Name: PostConnectionCallbackStore
// Dependencies: [6056, 5775, 573, 2]
2026-07-20 16:05:17 +00:00
// Exports: addPostConnectionCallback
// Module 6055 (PostConnectionCallbackStore)
import NewUserStore from "NewUserStore" /* 6056 */;
import GatewayConnectionStore from "GatewayConnectionStore" /* 5775 */;
import Dispatcher_mod from "Dispatcher" /* 573 */;
2026-07-23 10:11:24 +00:00
2026-07-20 16:05:17 +00:00
function processCallbacks() {
if (null == NewUserStore.getType()) {
let item = closure_2.forEach((item) => {
setImmediate(() => item());
2026-07-20 16:05:17 +00:00
});
closure_2 = [];
2026-07-20 16:05:17 +00:00
}
}
let closure_2 = [];
let Dispatcher = Dispatcher_mod;
const subscription = Dispatcher.subscribe("CONNECTION_OPEN", processCallbacks);
let Dispatcher = Dispatcher_mod;
const subscription1 = Dispatcher.subscribe("CONNECTION_RESUMED", processCallbacks);
let Dispatcher = Dispatcher_mod;
const subscription2 = Dispatcher.subscribe("NUF_COMPLETE", processCallbacks);
const size = fn(2);
const result = size.fileFinishedImporting("modules/gateway/PostConnectionCallbackStore.tsx");
2026-07-20 16:05:17 +00:00
export const addPostConnectionCallback = function addPostConnectionCallback(arg0) {
if (GatewayConnectionStore.isConnectedOrOverlay()) {
if (null == NewUserStore.getType()) {
closure_0 = arg0;
2026-07-29 08:29:29 +00:00
const _setImmediate = setImmediate;
setImmediate(() => item());
2026-07-20 16:05:17 +00:00
}
}
closure_2.push(arg0);
2026-07-20 16:05:17 +00:00
};