@balancy/wasm 1.0.25 → 1.0.28
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/dist/Balancy.wasm +0 -0
- package/dist/index.cjs.js +31 -3
- package/dist/index.es.js +31 -3
- package/dist/index.umd.js +31 -3
- package/dist/interfaces/core.interface.d.ts +6 -1
- package/dist/interfaces/core.interface.d.ts.map +1 -1
- package/dist/node/index.cjs.js +296 -122
- package/dist/node/index.es.js +296 -122
- package/dist/node/index.umd.js +296 -122
- package/package.json +1 -1
package/dist/node/index.es.js
CHANGED
|
@@ -385,7 +385,7 @@ var Balancy = function() {
|
|
|
385
385
|
"__Z30jsbalancyDataObjectViewPreloadNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE",
|
|
386
386
|
"_balancySetUnzipCallback",
|
|
387
387
|
"__Z23jsbalancyUnzipCompletedNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_",
|
|
388
|
-
"
|
|
388
|
+
"__Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE",
|
|
389
389
|
"_balancySetDataRequestedCallback",
|
|
390
390
|
"_balancyViewAllowOptimization",
|
|
391
391
|
"_balancyConfigLaunch",
|
|
@@ -414,6 +414,8 @@ var Balancy = function() {
|
|
|
414
414
|
"__Z35jsbalancyDailyBonus_claimNextRewardPN7Balancy4Data8BaseDataE",
|
|
415
415
|
"__Z38jsbalancyDailyBonus_canClaimNextRewardPN7Balancy4Data8BaseDataE",
|
|
416
416
|
"__Z47jsbalancyDailyBonus_getSecondsTillTheNextRewardPN7Balancy4Data8BaseDataE",
|
|
417
|
+
"__Z31jsbalancyBattlePass_claimRewardPN7Balancy4Data8BaseDataEi",
|
|
418
|
+
"__Z35jsbalancyBattlePass_getRewardStatusPN7Balancy4Data8BaseDataEi",
|
|
417
419
|
"__Z35jsbalancyOfferGroupInfo_CanPurchasePN7Balancy4Data8BaseDataEPNS_5Utils15JsonBasedObjectE",
|
|
418
420
|
"__Z51jsbalancyOfferInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE",
|
|
419
421
|
"__Z51jsbalancyEventInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE",
|
|
@@ -431,7 +433,10 @@ var Balancy = function() {
|
|
|
431
433
|
"__Z18jsbalancyGetStatusv",
|
|
432
434
|
"_balancyGetTimeOffset",
|
|
433
435
|
"_balancySetTimeOffset",
|
|
434
|
-
"
|
|
436
|
+
"__Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEib",
|
|
437
|
+
"__Z27jsbalancyInventory_AddItemsPN7Balancy5Utils15JsonBasedObjectEi",
|
|
438
|
+
"__Z30jsbalancyInventory_RemoveItemsPN7Balancy5Utils15JsonBasedObjectEi",
|
|
439
|
+
"__Z37jsbalancyInventory_GetTotalItemsCountPN7Balancy5Utils15JsonBasedObjectE",
|
|
435
440
|
"_emscripten_websocket_on_connection_status",
|
|
436
441
|
"_emscripten_websocket_on_socketio_event",
|
|
437
442
|
"_emscripten_websocket_on_socketio_error",
|
|
@@ -511,19 +516,30 @@ var Balancy = function() {
|
|
|
511
516
|
"_balancyDailyBonus_claimNextReward",
|
|
512
517
|
"_balancyDailyBonus_canClaimNextReward",
|
|
513
518
|
"_balancyDailyBonus_getSecondsTillTheNextReward",
|
|
519
|
+
"_balancyBattlePass_claimReward",
|
|
520
|
+
"_balancyBattlePass_getRewardStatus",
|
|
514
521
|
"_balancySoftPurchaseStoreItem",
|
|
515
522
|
"_balancySoftPurchaseShopSlot",
|
|
516
523
|
"_balancySoftPurchaseGameOffer",
|
|
517
524
|
"_balancySoftPurchaseGameOfferGroup",
|
|
525
|
+
"__Z22_balancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_8functionIFvS5_EEE",
|
|
518
526
|
"_balancyWebViewRequest",
|
|
519
527
|
"_balancyGetProductsIdAndType",
|
|
520
528
|
"_balancyGetParsedObject",
|
|
521
|
-
"
|
|
522
|
-
"
|
|
523
|
-
"
|
|
524
|
-
"
|
|
525
|
-
"
|
|
526
|
-
"
|
|
529
|
+
"_balancyAuth_NameAndPassword",
|
|
530
|
+
"__Z22jsbalancyAuth_DeviceIdNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE",
|
|
531
|
+
"__Z29jsbalancyAuth_NameAndPasswordNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_N10emscripten3valE",
|
|
532
|
+
"__Z30jsbalancyAuth_EmailAndPasswordNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_N10emscripten3valE",
|
|
533
|
+
"_balancyInventory_AddItems",
|
|
534
|
+
"_balancyInventory_RemoveItems",
|
|
535
|
+
"_balancyInventory_GetTotalItemsCount",
|
|
536
|
+
"_js_call_typescript_bridge_connect",
|
|
537
|
+
"_js_call_typescript_bridge_disconnect",
|
|
538
|
+
"_js_call_typescript_bridge_is_connected",
|
|
539
|
+
"_js_call_typescript_bridge_subscribe",
|
|
540
|
+
"_js_call_typescript_bridge_send_message",
|
|
541
|
+
"_js_call_typescript_bridge_send_ack",
|
|
542
|
+
"_js_initialize_typescript_bridge",
|
|
527
543
|
"_main",
|
|
528
544
|
"onRuntimeInitialized"
|
|
529
545
|
].forEach(function(prop) {
|
|
@@ -1332,131 +1348,274 @@ var Balancy = function() {
|
|
|
1332
1348
|
invokeErrorCallback(-1, error.message, callbackPtr);
|
|
1333
1349
|
});
|
|
1334
1350
|
}
|
|
1335
|
-
function
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
Module: typeof Module !== "undefined" ? Object.keys(Module) : "undefined",
|
|
1347
|
-
windowModule: typeof window !== "undefined" && window.Module ? Object.keys(window.Module) : "undefined",
|
|
1348
|
-
globalThisModule: typeof globalThis !== "undefined" && globalThis.Module ? Object.keys(globalThis.Module) : "undefined"
|
|
1349
|
-
});
|
|
1350
|
-
return false;
|
|
1351
|
+
function js_call_typescript_bridge_connect(connectionId, url, authData) {
|
|
1352
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_connect_request) {
|
|
1353
|
+
try {
|
|
1354
|
+
var urlStr = UTF8ToString(url);
|
|
1355
|
+
var authStr = UTF8ToString(authData);
|
|
1356
|
+
console.log("[C++ -> TS Bridge] Connect request", connectionId, urlStr);
|
|
1357
|
+
Module.typescript_websocket_connect_request(connectionId, urlStr, authStr);
|
|
1358
|
+
return true;
|
|
1359
|
+
} catch (error) {
|
|
1360
|
+
console.error("[ERROR] calling typescript_websocket_connect_request via Module:", error);
|
|
1361
|
+
}
|
|
1351
1362
|
}
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
}
|
|
1360
|
-
console.error("
|
|
1361
|
-
}
|
|
1362
|
-
return true;
|
|
1363
|
-
} catch (error) {
|
|
1364
|
-
console.error("❌ js_websocket_connect error:", error);
|
|
1365
|
-
return false;
|
|
1363
|
+
if (typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_connect_request) {
|
|
1364
|
+
try {
|
|
1365
|
+
var urlStr1 = UTF8ToString(url);
|
|
1366
|
+
var authStr1 = UTF8ToString(authData);
|
|
1367
|
+
console.log("[C++ -> TS Bridge] Connect request via window.Module", connectionId, urlStr1);
|
|
1368
|
+
window.Module.typescript_websocket_connect_request(connectionId, urlStr1, authStr1);
|
|
1369
|
+
return true;
|
|
1370
|
+
} catch (error) {
|
|
1371
|
+
console.error("[ERROR] calling typescript_websocket_connect_request via window.Module:", error);
|
|
1372
|
+
}
|
|
1366
1373
|
}
|
|
1374
|
+
if (typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_connect_request) {
|
|
1375
|
+
try {
|
|
1376
|
+
var urlStr2 = UTF8ToString(url);
|
|
1377
|
+
var authStr2 = UTF8ToString(authData);
|
|
1378
|
+
console.log("[C++ -> TS Bridge] Connect request via globalThis.Module", connectionId, urlStr2);
|
|
1379
|
+
globalThis.Module.typescript_websocket_connect_request(connectionId, urlStr2, authStr2);
|
|
1380
|
+
return true;
|
|
1381
|
+
} catch (error) {
|
|
1382
|
+
console.error("[ERROR] calling typescript_websocket_connect_request via globalThis.Module:", error);
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
console.error("[ERROR] TypeScript WebSocket Bridge connect method not found. Available contexts:", {
|
|
1386
|
+
Module: typeof Module !== "undefined" ? Object.keys(Module).filter(function(k) {
|
|
1387
|
+
return k.includes("websocket") || k.includes("typescript");
|
|
1388
|
+
}) : "undefined",
|
|
1389
|
+
windowModule: typeof window !== "undefined" && window.Module ? Object.keys(window.Module).filter(function(k) {
|
|
1390
|
+
return k.includes("websocket") || k.includes("typescript");
|
|
1391
|
+
}) : "undefined",
|
|
1392
|
+
globalThisModule: typeof globalThis !== "undefined" && globalThis.Module ? Object.keys(globalThis.Module).filter(function(k) {
|
|
1393
|
+
return k.includes("websocket") || k.includes("typescript");
|
|
1394
|
+
}) : "undefined"
|
|
1395
|
+
});
|
|
1396
|
+
return false;
|
|
1367
1397
|
}
|
|
1368
|
-
function
|
|
1369
|
-
var
|
|
1370
|
-
if (typeof Module !== "undefined" && Module.
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1398
|
+
function js_call_typescript_bridge_disconnect(connectionId) {
|
|
1399
|
+
var success = false;
|
|
1400
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_disconnect_request) {
|
|
1401
|
+
try {
|
|
1402
|
+
console.log("[C++ -> TS Bridge] Disconnect request", connectionId);
|
|
1403
|
+
Module.typescript_websocket_disconnect_request(connectionId);
|
|
1404
|
+
success = true;
|
|
1405
|
+
} catch (error) {
|
|
1406
|
+
console.error("[ERROR] calling typescript_websocket_disconnect_request via Module:", error);
|
|
1407
|
+
}
|
|
1376
1408
|
}
|
|
1377
|
-
if (!
|
|
1378
|
-
|
|
1379
|
-
|
|
1409
|
+
if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_disconnect_request) {
|
|
1410
|
+
try {
|
|
1411
|
+
console.log("[C++ -> TS Bridge] Disconnect request via window.Module", connectionId);
|
|
1412
|
+
window.Module.typescript_websocket_disconnect_request(connectionId);
|
|
1413
|
+
success = true;
|
|
1414
|
+
} catch (error) {
|
|
1415
|
+
console.error("[ERROR] calling typescript_websocket_disconnect_request via window.Module:", error);
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_disconnect_request) {
|
|
1419
|
+
try {
|
|
1420
|
+
console.log("[C++ -> TS Bridge] Disconnect request via globalThis.Module", connectionId);
|
|
1421
|
+
globalThis.Module.typescript_websocket_disconnect_request(connectionId);
|
|
1422
|
+
success = true;
|
|
1423
|
+
} catch (error) {
|
|
1424
|
+
console.error("[ERROR] calling typescript_websocket_disconnect_request via globalThis.Module:", error);
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
if (!success) {
|
|
1428
|
+
console.error("[ERROR] TypeScript WebSocket Bridge disconnect method not found");
|
|
1380
1429
|
}
|
|
1381
|
-
console.log("🔌 C++ -> JS: Disconnecting WebSocket", connectionId);
|
|
1382
|
-
socketIOManager.disconnect(connectionId);
|
|
1383
1430
|
}
|
|
1384
|
-
function
|
|
1385
|
-
var
|
|
1386
|
-
if (typeof Module !== "undefined" && Module.
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1431
|
+
function js_call_typescript_bridge_subscribe(connectionId, eventName) {
|
|
1432
|
+
var success = false;
|
|
1433
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_subscribe_event) {
|
|
1434
|
+
try {
|
|
1435
|
+
var eventStr = UTF8ToString(eventName);
|
|
1436
|
+
console.log("[C++ -> TS Bridge] Subscribe event", connectionId, eventStr);
|
|
1437
|
+
Module.typescript_websocket_subscribe_event(connectionId, eventStr);
|
|
1438
|
+
success = true;
|
|
1439
|
+
} catch (error) {
|
|
1440
|
+
console.error("[ERROR] calling typescript_websocket_subscribe_event via Module:", error);
|
|
1441
|
+
}
|
|
1392
1442
|
}
|
|
1393
|
-
if (!
|
|
1394
|
-
|
|
1443
|
+
if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_subscribe_event) {
|
|
1444
|
+
try {
|
|
1445
|
+
var eventStr1 = UTF8ToString(eventName);
|
|
1446
|
+
console.log("[C++ -> TS Bridge] Subscribe event via window.Module", connectionId, eventStr1);
|
|
1447
|
+
window.Module.typescript_websocket_subscribe_event(connectionId, eventStr1);
|
|
1448
|
+
success = true;
|
|
1449
|
+
} catch (error) {
|
|
1450
|
+
console.error("[ERROR] calling typescript_websocket_subscribe_event via window.Module:", error);
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_subscribe_event) {
|
|
1454
|
+
try {
|
|
1455
|
+
var eventStr2 = UTF8ToString(eventName);
|
|
1456
|
+
console.log("[C++ -> TS Bridge] Subscribe event via globalThis.Module", connectionId, eventStr2);
|
|
1457
|
+
globalThis.Module.typescript_websocket_subscribe_event(connectionId, eventStr2);
|
|
1458
|
+
success = true;
|
|
1459
|
+
} catch (error) {
|
|
1460
|
+
console.error("[ERROR] calling typescript_websocket_subscribe_event via globalThis.Module:", error);
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
if (!success) {
|
|
1464
|
+
console.error("[ERROR] TypeScript WebSocket Bridge subscribe method not found");
|
|
1395
1465
|
}
|
|
1396
|
-
return socketIOManager.isConnected(connectionId);
|
|
1397
1466
|
}
|
|
1398
|
-
function
|
|
1399
|
-
var
|
|
1400
|
-
if (typeof Module !== "undefined" && Module.
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1467
|
+
function js_call_typescript_bridge_send_message(connectionId, eventName, data) {
|
|
1468
|
+
var success = false;
|
|
1469
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_send_message) {
|
|
1470
|
+
try {
|
|
1471
|
+
var eventStr = UTF8ToString(eventName);
|
|
1472
|
+
var dataStr = UTF8ToString(data);
|
|
1473
|
+
console.log("[C++ -> TS Bridge] Send message", connectionId, eventStr);
|
|
1474
|
+
Module.typescript_websocket_send_message(connectionId, eventStr, dataStr);
|
|
1475
|
+
success = true;
|
|
1476
|
+
} catch (error) {
|
|
1477
|
+
console.error("[ERROR] calling typescript_websocket_send_message via Module:", error);
|
|
1478
|
+
}
|
|
1406
1479
|
}
|
|
1407
|
-
if (!
|
|
1408
|
-
|
|
1409
|
-
|
|
1480
|
+
if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_send_message) {
|
|
1481
|
+
try {
|
|
1482
|
+
var eventStr1 = UTF8ToString(eventName);
|
|
1483
|
+
var dataStr1 = UTF8ToString(data);
|
|
1484
|
+
console.log("[C++ -> TS Bridge] Send message via window.Module", connectionId, eventStr1);
|
|
1485
|
+
window.Module.typescript_websocket_send_message(connectionId, eventStr1, dataStr1);
|
|
1486
|
+
success = true;
|
|
1487
|
+
} catch (error) {
|
|
1488
|
+
console.error("[ERROR] calling typescript_websocket_send_message via window.Module:", error);
|
|
1489
|
+
}
|
|
1410
1490
|
}
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1491
|
+
if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_send_message) {
|
|
1492
|
+
try {
|
|
1493
|
+
var eventStr2 = UTF8ToString(eventName);
|
|
1494
|
+
var dataStr2 = UTF8ToString(data);
|
|
1495
|
+
console.log("[C++ -> TS Bridge] Send message via globalThis.Module", connectionId, eventStr2);
|
|
1496
|
+
globalThis.Module.typescript_websocket_send_message(connectionId, eventStr2, dataStr2);
|
|
1497
|
+
success = true;
|
|
1498
|
+
} catch (error) {
|
|
1499
|
+
console.error("[ERROR] calling typescript_websocket_send_message via globalThis.Module:", error);
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
if (!success) {
|
|
1503
|
+
console.error("[ERROR] TypeScript WebSocket Bridge send message method not found");
|
|
1417
1504
|
}
|
|
1418
1505
|
}
|
|
1419
|
-
function
|
|
1420
|
-
var
|
|
1421
|
-
if (typeof Module !== "undefined" && Module.
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1506
|
+
function js_call_typescript_bridge_send_ack(connectionId, ackId, responseData) {
|
|
1507
|
+
var success = false;
|
|
1508
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_send_ack) {
|
|
1509
|
+
try {
|
|
1510
|
+
var responseStr = UTF8ToString(responseData);
|
|
1511
|
+
console.log("[C++ -> TS Bridge] Send ack", connectionId, ackId);
|
|
1512
|
+
Module.typescript_websocket_send_ack(connectionId, ackId, responseStr);
|
|
1513
|
+
success = true;
|
|
1514
|
+
} catch (error) {
|
|
1515
|
+
console.error("[ERROR] calling typescript_websocket_send_ack via Module:", error);
|
|
1516
|
+
}
|
|
1427
1517
|
}
|
|
1428
|
-
if (!
|
|
1429
|
-
|
|
1430
|
-
|
|
1518
|
+
if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_send_ack) {
|
|
1519
|
+
try {
|
|
1520
|
+
var responseStr1 = UTF8ToString(responseData);
|
|
1521
|
+
console.log("[C++ -> TS Bridge] Send ack via window.Module", connectionId, ackId);
|
|
1522
|
+
window.Module.typescript_websocket_send_ack(connectionId, ackId, responseStr1);
|
|
1523
|
+
success = true;
|
|
1524
|
+
} catch (error) {
|
|
1525
|
+
console.error("[ERROR] calling typescript_websocket_send_ack via window.Module:", error);
|
|
1526
|
+
}
|
|
1431
1527
|
}
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1528
|
+
if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_send_ack) {
|
|
1529
|
+
try {
|
|
1530
|
+
var responseStr2 = UTF8ToString(responseData);
|
|
1531
|
+
console.log("[C++ -> TS Bridge] Send ack via globalThis.Module", connectionId, ackId);
|
|
1532
|
+
globalThis.Module.typescript_websocket_send_ack(connectionId, ackId, responseStr2);
|
|
1533
|
+
success = true;
|
|
1534
|
+
} catch (error) {
|
|
1535
|
+
console.error("[ERROR] calling typescript_websocket_send_ack via globalThis.Module:", error);
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
if (!success) {
|
|
1539
|
+
console.error("[ERROR] TypeScript WebSocket Bridge send ack method not found");
|
|
1439
1540
|
}
|
|
1440
1541
|
}
|
|
1441
|
-
function
|
|
1442
|
-
|
|
1443
|
-
if (typeof
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1542
|
+
function js_initialize_typescript_bridge() {
|
|
1543
|
+
console.log("[INIT] Initializing TypeScript WebSocket Bridge integration...");
|
|
1544
|
+
if (typeof window !== "undefined" && window.initializeTypeScriptWebSocketBridge) {
|
|
1545
|
+
try {
|
|
1546
|
+
window.initializeTypeScriptWebSocketBridge();
|
|
1547
|
+
console.log("[SUCCESS] TypeScript WebSocket Bridge initialized via window");
|
|
1548
|
+
} catch (error) {
|
|
1549
|
+
console.warn("[WARNING] Failed to initialize bridge via window:", error);
|
|
1550
|
+
}
|
|
1449
1551
|
}
|
|
1450
|
-
if (
|
|
1451
|
-
|
|
1452
|
-
|
|
1552
|
+
if (typeof globalThis !== "undefined" && globalThis.initializeTypeScriptWebSocketBridge) {
|
|
1553
|
+
try {
|
|
1554
|
+
globalThis.initializeTypeScriptWebSocketBridge();
|
|
1555
|
+
console.log("[SUCCESS] TypeScript WebSocket Bridge initialized via globalThis");
|
|
1556
|
+
} catch (error) {
|
|
1557
|
+
console.warn("[WARNING] Failed to initialize bridge via globalThis:", error);
|
|
1558
|
+
}
|
|
1453
1559
|
}
|
|
1560
|
+
var bridgeMethods = [
|
|
1561
|
+
"typescript_websocket_connect_request",
|
|
1562
|
+
"typescript_websocket_disconnect_request",
|
|
1563
|
+
"typescript_websocket_subscribe_event",
|
|
1564
|
+
"typescript_websocket_send_message",
|
|
1565
|
+
"typescript_websocket_send_ack"
|
|
1566
|
+
];
|
|
1567
|
+
var bridgeFound = false;
|
|
1568
|
+
var contexts = [];
|
|
1569
|
+
if (typeof Module !== "undefined") {
|
|
1570
|
+
contexts.push({
|
|
1571
|
+
name: "Module",
|
|
1572
|
+
obj: Module
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
if (typeof window !== "undefined" && window.Module) {
|
|
1576
|
+
contexts.push({
|
|
1577
|
+
name: "window.Module",
|
|
1578
|
+
obj: window.Module
|
|
1579
|
+
});
|
|
1580
|
+
}
|
|
1581
|
+
if (typeof globalThis !== "undefined" && globalThis.Module) {
|
|
1582
|
+
contexts.push({
|
|
1583
|
+
name: "globalThis.Module",
|
|
1584
|
+
obj: globalThis.Module
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1454
1588
|
try {
|
|
1455
|
-
var
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1589
|
+
var _loop = function() {
|
|
1590
|
+
var context = _step.value;
|
|
1591
|
+
var availableMethods = bridgeMethods.filter(function(method) {
|
|
1592
|
+
return typeof context.obj[method] === "function";
|
|
1593
|
+
});
|
|
1594
|
+
if (availableMethods.length > 0) {
|
|
1595
|
+
console.log("[SUCCESS] Bridge methods found in " + context.name + ": " + availableMethods.join(", "));
|
|
1596
|
+
bridgeFound = true;
|
|
1597
|
+
}
|
|
1598
|
+
};
|
|
1599
|
+
for(var _iterator = contexts[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
|
|
1600
|
+
} catch (err) {
|
|
1601
|
+
_didIteratorError = true;
|
|
1602
|
+
_iteratorError = err;
|
|
1603
|
+
} finally{
|
|
1604
|
+
try {
|
|
1605
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1606
|
+
_iterator.return();
|
|
1607
|
+
}
|
|
1608
|
+
} finally{
|
|
1609
|
+
if (_didIteratorError) {
|
|
1610
|
+
throw _iteratorError;
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
if (!bridgeFound) {
|
|
1615
|
+
console.warn("[WARNING] No TypeScript WebSocket Bridge methods found in any context");
|
|
1616
|
+
console.log("Available in Module:", typeof Module !== "undefined" ? Object.keys(Module).filter(function(k) {
|
|
1617
|
+
return k.includes("websocket") || k.includes("typescript");
|
|
1618
|
+
}) : "undefined");
|
|
1460
1619
|
}
|
|
1461
1620
|
}
|
|
1462
1621
|
var ExitStatus = function ExitStatus(status) {
|
|
@@ -7376,13 +7535,13 @@ var Balancy = function() {
|
|
|
7376
7535
|
invoke_viiiiiiiiii: invoke_viiiiiiiiii,
|
|
7377
7536
|
invoke_viiiiiiiiiiiiiii: invoke_viiiiiiiiiiiiiii,
|
|
7378
7537
|
invoke_viijii: invoke_viijii,
|
|
7538
|
+
js_call_typescript_bridge_connect: js_call_typescript_bridge_connect,
|
|
7539
|
+
js_call_typescript_bridge_disconnect: js_call_typescript_bridge_disconnect,
|
|
7540
|
+
js_call_typescript_bridge_send_ack: js_call_typescript_bridge_send_ack,
|
|
7541
|
+
js_call_typescript_bridge_send_message: js_call_typescript_bridge_send_message,
|
|
7542
|
+
js_call_typescript_bridge_subscribe: js_call_typescript_bridge_subscribe,
|
|
7379
7543
|
js_fetch: js_fetch,
|
|
7380
|
-
|
|
7381
|
-
js_websocket_disconnect: js_websocket_disconnect,
|
|
7382
|
-
js_websocket_is_connected: js_websocket_is_connected,
|
|
7383
|
-
js_websocket_send_ack: js_websocket_send_ack,
|
|
7384
|
-
js_websocket_send_message: js_websocket_send_message,
|
|
7385
|
-
js_websocket_subscribe: js_websocket_subscribe,
|
|
7544
|
+
js_initialize_typescript_bridge: js_initialize_typescript_bridge,
|
|
7386
7545
|
random_get: _random_get
|
|
7387
7546
|
};
|
|
7388
7547
|
var wasmExports;
|
|
@@ -7433,7 +7592,7 @@ var Balancy = function() {
|
|
|
7433
7592
|
Module["__Z30jsbalancyDataObjectViewPreloadNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE"] = createExportWrapper("_Z30jsbalancyDataObjectViewPreloadNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE", 2);
|
|
7434
7593
|
Module["_balancySetUnzipCallback"] = createExportWrapper("balancySetUnzipCallback", 1);
|
|
7435
7594
|
Module["__Z23jsbalancyUnzipCompletedNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_"] = createExportWrapper("_Z23jsbalancyUnzipCompletedNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_", 2);
|
|
7436
|
-
Module["
|
|
7595
|
+
Module["__Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE"] = createExportWrapper("_Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE", 2);
|
|
7437
7596
|
Module["_balancySetDataRequestedCallback"] = createExportWrapper("balancySetDataRequestedCallback", 1);
|
|
7438
7597
|
Module["_balancyViewAllowOptimization"] = createExportWrapper("balancyViewAllowOptimization", 1);
|
|
7439
7598
|
Module["_balancyConfigLaunch"] = createExportWrapper("balancyConfigLaunch", 1);
|
|
@@ -7462,6 +7621,8 @@ var Balancy = function() {
|
|
|
7462
7621
|
Module["__Z35jsbalancyDailyBonus_claimNextRewardPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z35jsbalancyDailyBonus_claimNextRewardPN7Balancy4Data8BaseDataE", 1);
|
|
7463
7622
|
Module["__Z38jsbalancyDailyBonus_canClaimNextRewardPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z38jsbalancyDailyBonus_canClaimNextRewardPN7Balancy4Data8BaseDataE", 1);
|
|
7464
7623
|
Module["__Z47jsbalancyDailyBonus_getSecondsTillTheNextRewardPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z47jsbalancyDailyBonus_getSecondsTillTheNextRewardPN7Balancy4Data8BaseDataE", 1);
|
|
7624
|
+
Module["__Z31jsbalancyBattlePass_claimRewardPN7Balancy4Data8BaseDataEi"] = createExportWrapper("_Z31jsbalancyBattlePass_claimRewardPN7Balancy4Data8BaseDataEi", 2);
|
|
7625
|
+
Module["__Z35jsbalancyBattlePass_getRewardStatusPN7Balancy4Data8BaseDataEi"] = createExportWrapper("_Z35jsbalancyBattlePass_getRewardStatusPN7Balancy4Data8BaseDataEi", 2);
|
|
7465
7626
|
Module["__Z35jsbalancyOfferGroupInfo_CanPurchasePN7Balancy4Data8BaseDataEPNS_5Utils15JsonBasedObjectE"] = createExportWrapper("_Z35jsbalancyOfferGroupInfo_CanPurchasePN7Balancy4Data8BaseDataEPNS_5Utils15JsonBasedObjectE", 2);
|
|
7466
7627
|
Module["__Z51jsbalancyOfferInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z51jsbalancyOfferInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE", 1);
|
|
7467
7628
|
Module["__Z51jsbalancyEventInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z51jsbalancyEventInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE", 1);
|
|
@@ -7479,7 +7640,10 @@ var Balancy = function() {
|
|
|
7479
7640
|
Module["__Z18jsbalancyGetStatusv"] = createExportWrapper("_Z18jsbalancyGetStatusv", 0);
|
|
7480
7641
|
Module["_balancyGetTimeOffset"] = createExportWrapper("balancyGetTimeOffset", 0);
|
|
7481
7642
|
Module["_balancySetTimeOffset"] = createExportWrapper("balancySetTimeOffset", 1);
|
|
7482
|
-
Module["
|
|
7643
|
+
Module["__Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEib"] = createExportWrapper("_Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEib", 4);
|
|
7644
|
+
Module["__Z27jsbalancyInventory_AddItemsPN7Balancy5Utils15JsonBasedObjectEi"] = createExportWrapper("_Z27jsbalancyInventory_AddItemsPN7Balancy5Utils15JsonBasedObjectEi", 2);
|
|
7645
|
+
Module["__Z30jsbalancyInventory_RemoveItemsPN7Balancy5Utils15JsonBasedObjectEi"] = createExportWrapper("_Z30jsbalancyInventory_RemoveItemsPN7Balancy5Utils15JsonBasedObjectEi", 2);
|
|
7646
|
+
Module["__Z37jsbalancyInventory_GetTotalItemsCountPN7Balancy5Utils15JsonBasedObjectE"] = createExportWrapper("_Z37jsbalancyInventory_GetTotalItemsCountPN7Balancy5Utils15JsonBasedObjectE", 1);
|
|
7483
7647
|
Module["_emscripten_websocket_on_connection_status"] = createExportWrapper("emscripten_websocket_on_connection_status", 3);
|
|
7484
7648
|
Module["_emscripten_websocket_on_socketio_event"] = createExportWrapper("emscripten_websocket_on_socketio_event", 5);
|
|
7485
7649
|
Module["_emscripten_websocket_on_socketio_error"] = createExportWrapper("emscripten_websocket_on_socketio_error", 3);
|
|
@@ -7561,13 +7725,23 @@ var Balancy = function() {
|
|
|
7561
7725
|
Module["_balancyDailyBonus_claimNextReward"] = createExportWrapper("balancyDailyBonus_claimNextReward", 1);
|
|
7562
7726
|
Module["_balancyDailyBonus_canClaimNextReward"] = createExportWrapper("balancyDailyBonus_canClaimNextReward", 1);
|
|
7563
7727
|
Module["_balancyDailyBonus_getSecondsTillTheNextReward"] = createExportWrapper("balancyDailyBonus_getSecondsTillTheNextReward", 1);
|
|
7728
|
+
Module["_balancyBattlePass_claimReward"] = createExportWrapper("balancyBattlePass_claimReward", 2);
|
|
7729
|
+
Module["_balancyBattlePass_getRewardStatus"] = createExportWrapper("balancyBattlePass_getRewardStatus", 2);
|
|
7564
7730
|
Module["_balancySoftPurchaseStoreItem"] = createExportWrapper("balancySoftPurchaseStoreItem", 1);
|
|
7565
7731
|
Module["_balancySoftPurchaseShopSlot"] = createExportWrapper("balancySoftPurchaseShopSlot", 1);
|
|
7566
7732
|
Module["_balancySoftPurchaseGameOffer"] = createExportWrapper("balancySoftPurchaseGameOffer", 1);
|
|
7567
7733
|
Module["_balancySoftPurchaseGameOfferGroup"] = createExportWrapper("balancySoftPurchaseGameOfferGroup", 2);
|
|
7734
|
+
Module["__Z22_balancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_8functionIFvS5_EEE"] = createExportWrapper("_Z22_balancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_8functionIFvS5_EEE", 2);
|
|
7568
7735
|
Module["_balancyWebViewRequest"] = createExportWrapper("balancyWebViewRequest", 1);
|
|
7569
7736
|
Module["_balancyGetProductsIdAndType"] = createExportWrapper("balancyGetProductsIdAndType", 1);
|
|
7570
|
-
Module["_balancyGetParsedObject"] = createExportWrapper("balancyGetParsedObject",
|
|
7737
|
+
Module["_balancyGetParsedObject"] = createExportWrapper("balancyGetParsedObject", 3);
|
|
7738
|
+
Module["_balancyAuth_NameAndPassword"] = createExportWrapper("balancyAuth_NameAndPassword", 3);
|
|
7739
|
+
Module["__Z22jsbalancyAuth_DeviceIdNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE"] = createExportWrapper("_Z22jsbalancyAuth_DeviceIdNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE", 2);
|
|
7740
|
+
Module["__Z29jsbalancyAuth_NameAndPasswordNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_N10emscripten3valE"] = createExportWrapper("_Z29jsbalancyAuth_NameAndPasswordNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_N10emscripten3valE", 3);
|
|
7741
|
+
Module["__Z30jsbalancyAuth_EmailAndPasswordNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_N10emscripten3valE"] = createExportWrapper("_Z30jsbalancyAuth_EmailAndPasswordNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_N10emscripten3valE", 3);
|
|
7742
|
+
Module["_balancyInventory_AddItems"] = createExportWrapper("balancyInventory_AddItems", 2);
|
|
7743
|
+
Module["_balancyInventory_RemoveItems"] = createExportWrapper("balancyInventory_RemoveItems", 2);
|
|
7744
|
+
Module["_balancyInventory_GetTotalItemsCount"] = createExportWrapper("balancyInventory_GetTotalItemsCount", 1);
|
|
7571
7745
|
var _fflush = createExportWrapper("fflush", 1);
|
|
7572
7746
|
var _strerror = createExportWrapper("strerror", 1);
|
|
7573
7747
|
var _setThrew = createExportWrapper("setThrew", 2);
|