catlab-remote-client 2.2.5 → 4.0.0
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.
|
@@ -97,16 +97,10 @@ require(
|
|
|
97
97
|
require(
|
|
98
98
|
['CatLab/Webremote/PlayerPool/PlayerPoolWorker'],
|
|
99
99
|
function (PlayerPoolWorker) {
|
|
100
|
-
//
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
if (e.data && e.data.type === 'worker:init') {
|
|
105
|
-
self.removeEventListener('message', initHandler);
|
|
106
|
-
var worker = new PlayerPoolWorker();
|
|
107
|
-
worker.start(e.data.options || {});
|
|
108
|
-
}
|
|
109
|
-
});
|
|
100
|
+
// Single boot entry point: posts worker:modules-ready and boots
|
|
101
|
+
// on worker:init. No createGameLogic here — the library's own
|
|
102
|
+
// demo runs on the base GameLogic defaults.
|
|
103
|
+
PlayerPoolWorker.bootWorker({});
|
|
110
104
|
},
|
|
111
105
|
function (err) {
|
|
112
106
|
console.error('[worker] Failed to load PlayerPoolWorker:', err.message);
|