@balancy/wasm 1.0.25 → 1.0.26

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.
@@ -390,7 +390,7 @@ var Balancy = function() {
390
390
  "__Z30jsbalancyDataObjectViewPreloadNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE",
391
391
  "_balancySetUnzipCallback",
392
392
  "__Z23jsbalancyUnzipCompletedNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_",
393
- "__Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE",
393
+ "__Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE",
394
394
  "_balancySetDataRequestedCallback",
395
395
  "_balancyViewAllowOptimization",
396
396
  "_balancyConfigLaunch",
@@ -419,6 +419,8 @@ var Balancy = function() {
419
419
  "__Z35jsbalancyDailyBonus_claimNextRewardPN7Balancy4Data8BaseDataE",
420
420
  "__Z38jsbalancyDailyBonus_canClaimNextRewardPN7Balancy4Data8BaseDataE",
421
421
  "__Z47jsbalancyDailyBonus_getSecondsTillTheNextRewardPN7Balancy4Data8BaseDataE",
422
+ "__Z31jsbalancyBattlePass_claimRewardPN7Balancy4Data8BaseDataEi",
423
+ "__Z35jsbalancyBattlePass_getRewardStatusPN7Balancy4Data8BaseDataEi",
422
424
  "__Z35jsbalancyOfferGroupInfo_CanPurchasePN7Balancy4Data8BaseDataEPNS_5Utils15JsonBasedObjectE",
423
425
  "__Z51jsbalancyOfferInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE",
424
426
  "__Z51jsbalancyEventInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE",
@@ -436,7 +438,7 @@ var Balancy = function() {
436
438
  "__Z18jsbalancyGetStatusv",
437
439
  "_balancyGetTimeOffset",
438
440
  "_balancySetTimeOffset",
439
- "__Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEb",
441
+ "__Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEib",
440
442
  "_emscripten_websocket_on_connection_status",
441
443
  "_emscripten_websocket_on_socketio_event",
442
444
  "_emscripten_websocket_on_socketio_error",
@@ -516,19 +518,23 @@ var Balancy = function() {
516
518
  "_balancyDailyBonus_claimNextReward",
517
519
  "_balancyDailyBonus_canClaimNextReward",
518
520
  "_balancyDailyBonus_getSecondsTillTheNextReward",
521
+ "_balancyBattlePass_claimReward",
522
+ "_balancyBattlePass_getRewardStatus",
519
523
  "_balancySoftPurchaseStoreItem",
520
524
  "_balancySoftPurchaseShopSlot",
521
525
  "_balancySoftPurchaseGameOffer",
522
526
  "_balancySoftPurchaseGameOfferGroup",
527
+ "__Z22_balancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_8functionIFvS5_EEE",
523
528
  "_balancyWebViewRequest",
524
529
  "_balancyGetProductsIdAndType",
525
530
  "_balancyGetParsedObject",
526
- "_js_websocket_connect",
527
- "_js_websocket_disconnect",
528
- "_js_websocket_is_connected",
529
- "_js_websocket_subscribe",
530
- "_js_websocket_send_message",
531
- "_js_websocket_send_ack",
531
+ "_js_call_typescript_bridge_connect",
532
+ "_js_call_typescript_bridge_disconnect",
533
+ "_js_call_typescript_bridge_is_connected",
534
+ "_js_call_typescript_bridge_subscribe",
535
+ "_js_call_typescript_bridge_send_message",
536
+ "_js_call_typescript_bridge_send_ack",
537
+ "_js_initialize_typescript_bridge",
532
538
  "_main",
533
539
  "onRuntimeInitialized"
534
540
  ].forEach(function(prop) {
@@ -1337,131 +1343,274 @@ var Balancy = function() {
1337
1343
  invokeErrorCallback(-1, error.message, callbackPtr);
1338
1344
  });
1339
1345
  }
1340
- function js_websocket_connect(connectionId, url, authData) {
1341
- var socketIOManager = null;
1342
- if (typeof Module !== "undefined" && Module.SocketIOManager) {
1343
- socketIOManager = Module.SocketIOManager;
1344
- } else if (typeof window !== "undefined" && window.Module && window.Module.SocketIOManager) {
1345
- socketIOManager = window.Module.SocketIOManager;
1346
- } else if (typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.SocketIOManager) {
1347
- socketIOManager = globalThis.Module.SocketIOManager;
1348
- }
1349
- if (!socketIOManager) {
1350
- console.error("SocketIOManager not found. Available contexts:", {
1351
- Module: typeof Module !== "undefined" ? Object.keys(Module) : "undefined",
1352
- windowModule: typeof window !== "undefined" && window.Module ? Object.keys(window.Module) : "undefined",
1353
- globalThisModule: typeof globalThis !== "undefined" && globalThis.Module ? Object.keys(globalThis.Module) : "undefined"
1354
- });
1355
- return false;
1346
+ function js_call_typescript_bridge_connect(connectionId, url, authData) {
1347
+ if (typeof Module !== "undefined" && Module.typescript_websocket_connect_request) {
1348
+ try {
1349
+ var urlStr = UTF8ToString(url);
1350
+ var authStr = UTF8ToString(authData);
1351
+ console.log("[C++ -> TS Bridge] Connect request", connectionId, urlStr);
1352
+ Module.typescript_websocket_connect_request(connectionId, urlStr, authStr);
1353
+ return true;
1354
+ } catch (error) {
1355
+ console.error("[ERROR] calling typescript_websocket_connect_request via Module:", error);
1356
+ }
1356
1357
  }
1357
- try {
1358
- var urlStr = UTF8ToString(url);
1359
- var authStr = UTF8ToString(authData);
1360
- var authObj = JSON.parse(authStr);
1361
- console.log("🔌 C++ -> JS: Connecting WebSocket", connectionId, urlStr);
1362
- socketIOManager.connect(connectionId, urlStr, authObj).then(function(result) {
1363
- console.log("🔌 WebSocket connection attempt completed:", result);
1364
- }).catch(function(error) {
1365
- console.error(" WebSocket connection attempt failed:", error);
1366
- });
1367
- return true;
1368
- } catch (error) {
1369
- console.error("❌ js_websocket_connect error:", error);
1370
- return false;
1358
+ if (typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_connect_request) {
1359
+ try {
1360
+ var urlStr1 = UTF8ToString(url);
1361
+ var authStr1 = UTF8ToString(authData);
1362
+ console.log("[C++ -> TS Bridge] Connect request via window.Module", connectionId, urlStr1);
1363
+ window.Module.typescript_websocket_connect_request(connectionId, urlStr1, authStr1);
1364
+ return true;
1365
+ } catch (error) {
1366
+ console.error("[ERROR] calling typescript_websocket_connect_request via window.Module:", error);
1367
+ }
1371
1368
  }
1369
+ if (typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_connect_request) {
1370
+ try {
1371
+ var urlStr2 = UTF8ToString(url);
1372
+ var authStr2 = UTF8ToString(authData);
1373
+ console.log("[C++ -> TS Bridge] Connect request via globalThis.Module", connectionId, urlStr2);
1374
+ globalThis.Module.typescript_websocket_connect_request(connectionId, urlStr2, authStr2);
1375
+ return true;
1376
+ } catch (error) {
1377
+ console.error("[ERROR] calling typescript_websocket_connect_request via globalThis.Module:", error);
1378
+ }
1379
+ }
1380
+ console.error("[ERROR] TypeScript WebSocket Bridge connect method not found. Available contexts:", {
1381
+ Module: typeof Module !== "undefined" ? Object.keys(Module).filter(function(k) {
1382
+ return k.includes("websocket") || k.includes("typescript");
1383
+ }) : "undefined",
1384
+ windowModule: typeof window !== "undefined" && window.Module ? Object.keys(window.Module).filter(function(k) {
1385
+ return k.includes("websocket") || k.includes("typescript");
1386
+ }) : "undefined",
1387
+ globalThisModule: typeof globalThis !== "undefined" && globalThis.Module ? Object.keys(globalThis.Module).filter(function(k) {
1388
+ return k.includes("websocket") || k.includes("typescript");
1389
+ }) : "undefined"
1390
+ });
1391
+ return false;
1372
1392
  }
1373
- function js_websocket_disconnect(connectionId) {
1374
- var socketIOManager = null;
1375
- if (typeof Module !== "undefined" && Module.SocketIOManager) {
1376
- socketIOManager = Module.SocketIOManager;
1377
- } else if (typeof window !== "undefined" && window.Module && window.Module.SocketIOManager) {
1378
- socketIOManager = window.Module.SocketIOManager;
1379
- } else if (typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.SocketIOManager) {
1380
- socketIOManager = globalThis.Module.SocketIOManager;
1393
+ function js_call_typescript_bridge_disconnect(connectionId) {
1394
+ var success = false;
1395
+ if (typeof Module !== "undefined" && Module.typescript_websocket_disconnect_request) {
1396
+ try {
1397
+ console.log("[C++ -> TS Bridge] Disconnect request", connectionId);
1398
+ Module.typescript_websocket_disconnect_request(connectionId);
1399
+ success = true;
1400
+ } catch (error) {
1401
+ console.error("[ERROR] calling typescript_websocket_disconnect_request via Module:", error);
1402
+ }
1381
1403
  }
1382
- if (!socketIOManager) {
1383
- console.error("SocketIOManager not initialized in TypeScript");
1384
- return;
1404
+ if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_disconnect_request) {
1405
+ try {
1406
+ console.log("[C++ -> TS Bridge] Disconnect request via window.Module", connectionId);
1407
+ window.Module.typescript_websocket_disconnect_request(connectionId);
1408
+ success = true;
1409
+ } catch (error) {
1410
+ console.error("[ERROR] calling typescript_websocket_disconnect_request via window.Module:", error);
1411
+ }
1412
+ }
1413
+ if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_disconnect_request) {
1414
+ try {
1415
+ console.log("[C++ -> TS Bridge] Disconnect request via globalThis.Module", connectionId);
1416
+ globalThis.Module.typescript_websocket_disconnect_request(connectionId);
1417
+ success = true;
1418
+ } catch (error) {
1419
+ console.error("[ERROR] calling typescript_websocket_disconnect_request via globalThis.Module:", error);
1420
+ }
1421
+ }
1422
+ if (!success) {
1423
+ console.error("[ERROR] TypeScript WebSocket Bridge disconnect method not found");
1385
1424
  }
1386
- console.log("🔌 C++ -> JS: Disconnecting WebSocket", connectionId);
1387
- socketIOManager.disconnect(connectionId);
1388
1425
  }
1389
- function js_websocket_is_connected(connectionId) {
1390
- var socketIOManager = null;
1391
- if (typeof Module !== "undefined" && Module.SocketIOManager) {
1392
- socketIOManager = Module.SocketIOManager;
1393
- } else if (typeof window !== "undefined" && window.Module && window.Module.SocketIOManager) {
1394
- socketIOManager = window.Module.SocketIOManager;
1395
- } else if (typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.SocketIOManager) {
1396
- socketIOManager = globalThis.Module.SocketIOManager;
1426
+ function js_call_typescript_bridge_subscribe(connectionId, eventName) {
1427
+ var success = false;
1428
+ if (typeof Module !== "undefined" && Module.typescript_websocket_subscribe_event) {
1429
+ try {
1430
+ var eventStr = UTF8ToString(eventName);
1431
+ console.log("[C++ -> TS Bridge] Subscribe event", connectionId, eventStr);
1432
+ Module.typescript_websocket_subscribe_event(connectionId, eventStr);
1433
+ success = true;
1434
+ } catch (error) {
1435
+ console.error("[ERROR] calling typescript_websocket_subscribe_event via Module:", error);
1436
+ }
1397
1437
  }
1398
- if (!socketIOManager) {
1399
- return false;
1438
+ if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_subscribe_event) {
1439
+ try {
1440
+ var eventStr1 = UTF8ToString(eventName);
1441
+ console.log("[C++ -> TS Bridge] Subscribe event via window.Module", connectionId, eventStr1);
1442
+ window.Module.typescript_websocket_subscribe_event(connectionId, eventStr1);
1443
+ success = true;
1444
+ } catch (error) {
1445
+ console.error("[ERROR] calling typescript_websocket_subscribe_event via window.Module:", error);
1446
+ }
1447
+ }
1448
+ if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_subscribe_event) {
1449
+ try {
1450
+ var eventStr2 = UTF8ToString(eventName);
1451
+ console.log("[C++ -> TS Bridge] Subscribe event via globalThis.Module", connectionId, eventStr2);
1452
+ globalThis.Module.typescript_websocket_subscribe_event(connectionId, eventStr2);
1453
+ success = true;
1454
+ } catch (error) {
1455
+ console.error("[ERROR] calling typescript_websocket_subscribe_event via globalThis.Module:", error);
1456
+ }
1457
+ }
1458
+ if (!success) {
1459
+ console.error("[ERROR] TypeScript WebSocket Bridge subscribe method not found");
1400
1460
  }
1401
- return socketIOManager.isConnected(connectionId);
1402
1461
  }
1403
- function js_websocket_subscribe(connectionId, eventName) {
1404
- var socketIOManager = null;
1405
- if (typeof Module !== "undefined" && Module.SocketIOManager) {
1406
- socketIOManager = Module.SocketIOManager;
1407
- } else if (typeof window !== "undefined" && window.Module && window.Module.SocketIOManager) {
1408
- socketIOManager = window.Module.SocketIOManager;
1409
- } else if (typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.SocketIOManager) {
1410
- socketIOManager = globalThis.Module.SocketIOManager;
1462
+ function js_call_typescript_bridge_send_message(connectionId, eventName, data) {
1463
+ var success = false;
1464
+ if (typeof Module !== "undefined" && Module.typescript_websocket_send_message) {
1465
+ try {
1466
+ var eventStr = UTF8ToString(eventName);
1467
+ var dataStr = UTF8ToString(data);
1468
+ console.log("[C++ -> TS Bridge] Send message", connectionId, eventStr);
1469
+ Module.typescript_websocket_send_message(connectionId, eventStr, dataStr);
1470
+ success = true;
1471
+ } catch (error) {
1472
+ console.error("[ERROR] calling typescript_websocket_send_message via Module:", error);
1473
+ }
1411
1474
  }
1412
- if (!socketIOManager) {
1413
- console.error("SocketIOManager not initialized in TypeScript");
1414
- return;
1475
+ if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_send_message) {
1476
+ try {
1477
+ var eventStr1 = UTF8ToString(eventName);
1478
+ var dataStr1 = UTF8ToString(data);
1479
+ console.log("[C++ -> TS Bridge] Send message via window.Module", connectionId, eventStr1);
1480
+ window.Module.typescript_websocket_send_message(connectionId, eventStr1, dataStr1);
1481
+ success = true;
1482
+ } catch (error) {
1483
+ console.error("[ERROR] calling typescript_websocket_send_message via window.Module:", error);
1484
+ }
1415
1485
  }
1416
- try {
1417
- var eventStr = UTF8ToString(eventName);
1418
- console.log("🔌 C++ -> JS: Subscribing to event", connectionId, eventStr);
1419
- socketIOManager.subscribeToEvent(connectionId, eventStr);
1420
- } catch (error) {
1421
- console.error("❌ js_websocket_subscribe error:", error);
1486
+ if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_send_message) {
1487
+ try {
1488
+ var eventStr2 = UTF8ToString(eventName);
1489
+ var dataStr2 = UTF8ToString(data);
1490
+ console.log("[C++ -> TS Bridge] Send message via globalThis.Module", connectionId, eventStr2);
1491
+ globalThis.Module.typescript_websocket_send_message(connectionId, eventStr2, dataStr2);
1492
+ success = true;
1493
+ } catch (error) {
1494
+ console.error("[ERROR] calling typescript_websocket_send_message via globalThis.Module:", error);
1495
+ }
1496
+ }
1497
+ if (!success) {
1498
+ console.error("[ERROR] TypeScript WebSocket Bridge send message method not found");
1422
1499
  }
1423
1500
  }
1424
- function js_websocket_send_message(connectionId, eventName, data) {
1425
- var socketIOManager = null;
1426
- if (typeof Module !== "undefined" && Module.SocketIOManager) {
1427
- socketIOManager = Module.SocketIOManager;
1428
- } else if (typeof window !== "undefined" && window.Module && window.Module.SocketIOManager) {
1429
- socketIOManager = window.Module.SocketIOManager;
1430
- } else if (typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.SocketIOManager) {
1431
- socketIOManager = globalThis.Module.SocketIOManager;
1501
+ function js_call_typescript_bridge_send_ack(connectionId, ackId, responseData) {
1502
+ var success = false;
1503
+ if (typeof Module !== "undefined" && Module.typescript_websocket_send_ack) {
1504
+ try {
1505
+ var responseStr = UTF8ToString(responseData);
1506
+ console.log("[C++ -> TS Bridge] Send ack", connectionId, ackId);
1507
+ Module.typescript_websocket_send_ack(connectionId, ackId, responseStr);
1508
+ success = true;
1509
+ } catch (error) {
1510
+ console.error("[ERROR] calling typescript_websocket_send_ack via Module:", error);
1511
+ }
1432
1512
  }
1433
- if (!socketIOManager) {
1434
- console.error("SocketIOManager not initialized in TypeScript");
1435
- return;
1513
+ if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_send_ack) {
1514
+ try {
1515
+ var responseStr1 = UTF8ToString(responseData);
1516
+ console.log("[C++ -> TS Bridge] Send ack via window.Module", connectionId, ackId);
1517
+ window.Module.typescript_websocket_send_ack(connectionId, ackId, responseStr1);
1518
+ success = true;
1519
+ } catch (error) {
1520
+ console.error("[ERROR] calling typescript_websocket_send_ack via window.Module:", error);
1521
+ }
1436
1522
  }
1437
- try {
1438
- var eventStr = UTF8ToString(eventName);
1439
- var dataStr = UTF8ToString(data);
1440
- console.log("🔌 C++ -> JS: Sending message", connectionId, eventStr);
1441
- socketIOManager.sendMessage(connectionId, eventStr, dataStr);
1442
- } catch (error) {
1443
- console.error("❌ js_websocket_send_message error:", error);
1523
+ if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_send_ack) {
1524
+ try {
1525
+ var responseStr2 = UTF8ToString(responseData);
1526
+ console.log("[C++ -> TS Bridge] Send ack via globalThis.Module", connectionId, ackId);
1527
+ globalThis.Module.typescript_websocket_send_ack(connectionId, ackId, responseStr2);
1528
+ success = true;
1529
+ } catch (error) {
1530
+ console.error("[ERROR] calling typescript_websocket_send_ack via globalThis.Module:", error);
1531
+ }
1532
+ }
1533
+ if (!success) {
1534
+ console.error("[ERROR] TypeScript WebSocket Bridge send ack method not found");
1444
1535
  }
1445
1536
  }
1446
- function js_websocket_send_ack(connectionId, ackId, responseData) {
1447
- var socketIOManager = null;
1448
- if (typeof Module !== "undefined" && Module.SocketIOManager) {
1449
- socketIOManager = Module.SocketIOManager;
1450
- } else if (typeof window !== "undefined" && window.Module && window.Module.SocketIOManager) {
1451
- socketIOManager = window.Module.SocketIOManager;
1452
- } else if (typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.SocketIOManager) {
1453
- socketIOManager = globalThis.Module.SocketIOManager;
1537
+ function js_initialize_typescript_bridge() {
1538
+ console.log("[INIT] Initializing TypeScript WebSocket Bridge integration...");
1539
+ if (typeof window !== "undefined" && window.initializeTypeScriptWebSocketBridge) {
1540
+ try {
1541
+ window.initializeTypeScriptWebSocketBridge();
1542
+ console.log("[SUCCESS] TypeScript WebSocket Bridge initialized via window");
1543
+ } catch (error) {
1544
+ console.warn("[WARNING] Failed to initialize bridge via window:", error);
1545
+ }
1454
1546
  }
1455
- if (!socketIOManager) {
1456
- console.error("SocketIOManager not initialized in TypeScript");
1457
- return;
1547
+ if (typeof globalThis !== "undefined" && globalThis.initializeTypeScriptWebSocketBridge) {
1548
+ try {
1549
+ globalThis.initializeTypeScriptWebSocketBridge();
1550
+ console.log("[SUCCESS] TypeScript WebSocket Bridge initialized via globalThis");
1551
+ } catch (error) {
1552
+ console.warn("[WARNING] Failed to initialize bridge via globalThis:", error);
1553
+ }
1458
1554
  }
1555
+ var bridgeMethods = [
1556
+ "typescript_websocket_connect_request",
1557
+ "typescript_websocket_disconnect_request",
1558
+ "typescript_websocket_subscribe_event",
1559
+ "typescript_websocket_send_message",
1560
+ "typescript_websocket_send_ack"
1561
+ ];
1562
+ var bridgeFound = false;
1563
+ var contexts = [];
1564
+ if (typeof Module !== "undefined") {
1565
+ contexts.push({
1566
+ name: "Module",
1567
+ obj: Module
1568
+ });
1569
+ }
1570
+ if (typeof window !== "undefined" && window.Module) {
1571
+ contexts.push({
1572
+ name: "window.Module",
1573
+ obj: window.Module
1574
+ });
1575
+ }
1576
+ if (typeof globalThis !== "undefined" && globalThis.Module) {
1577
+ contexts.push({
1578
+ name: "globalThis.Module",
1579
+ obj: globalThis.Module
1580
+ });
1581
+ }
1582
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1459
1583
  try {
1460
- var responseStr = UTF8ToString(responseData);
1461
- console.log("🔌 C++ -> JS: Sending ack", connectionId, ackId);
1462
- socketIOManager.sendAcknowledgment(connectionId, ackId, responseStr);
1463
- } catch (error) {
1464
- console.error("❌ js_websocket_send_ack error:", error);
1584
+ var _loop = function() {
1585
+ var context = _step.value;
1586
+ var availableMethods = bridgeMethods.filter(function(method) {
1587
+ return typeof context.obj[method] === "function";
1588
+ });
1589
+ if (availableMethods.length > 0) {
1590
+ console.log("[SUCCESS] Bridge methods found in " + context.name + ": " + availableMethods.join(", "));
1591
+ bridgeFound = true;
1592
+ }
1593
+ };
1594
+ for(var _iterator = contexts[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
1595
+ } catch (err) {
1596
+ _didIteratorError = true;
1597
+ _iteratorError = err;
1598
+ } finally{
1599
+ try {
1600
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
1601
+ _iterator.return();
1602
+ }
1603
+ } finally{
1604
+ if (_didIteratorError) {
1605
+ throw _iteratorError;
1606
+ }
1607
+ }
1608
+ }
1609
+ if (!bridgeFound) {
1610
+ console.warn("[WARNING] No TypeScript WebSocket Bridge methods found in any context");
1611
+ console.log("Available in Module:", typeof Module !== "undefined" ? Object.keys(Module).filter(function(k) {
1612
+ return k.includes("websocket") || k.includes("typescript");
1613
+ }) : "undefined");
1465
1614
  }
1466
1615
  }
1467
1616
  var ExitStatus = function ExitStatus(status) {
@@ -7381,13 +7530,13 @@ var Balancy = function() {
7381
7530
  invoke_viiiiiiiiii: invoke_viiiiiiiiii,
7382
7531
  invoke_viiiiiiiiiiiiiii: invoke_viiiiiiiiiiiiiii,
7383
7532
  invoke_viijii: invoke_viijii,
7533
+ js_call_typescript_bridge_connect: js_call_typescript_bridge_connect,
7534
+ js_call_typescript_bridge_disconnect: js_call_typescript_bridge_disconnect,
7535
+ js_call_typescript_bridge_send_ack: js_call_typescript_bridge_send_ack,
7536
+ js_call_typescript_bridge_send_message: js_call_typescript_bridge_send_message,
7537
+ js_call_typescript_bridge_subscribe: js_call_typescript_bridge_subscribe,
7384
7538
  js_fetch: js_fetch,
7385
- js_websocket_connect: js_websocket_connect,
7386
- js_websocket_disconnect: js_websocket_disconnect,
7387
- js_websocket_is_connected: js_websocket_is_connected,
7388
- js_websocket_send_ack: js_websocket_send_ack,
7389
- js_websocket_send_message: js_websocket_send_message,
7390
- js_websocket_subscribe: js_websocket_subscribe,
7539
+ js_initialize_typescript_bridge: js_initialize_typescript_bridge,
7391
7540
  random_get: _random_get
7392
7541
  };
7393
7542
  var wasmExports;
@@ -7438,7 +7587,7 @@ var Balancy = function() {
7438
7587
  Module["__Z30jsbalancyDataObjectViewPreloadNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE"] = createExportWrapper("_Z30jsbalancyDataObjectViewPreloadNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE", 2);
7439
7588
  Module["_balancySetUnzipCallback"] = createExportWrapper("balancySetUnzipCallback", 1);
7440
7589
  Module["__Z23jsbalancyUnzipCompletedNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_"] = createExportWrapper("_Z23jsbalancyUnzipCompletedNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_", 2);
7441
- Module["__Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE"] = createExportWrapper("_Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE", 2);
7590
+ Module["__Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE"] = createExportWrapper("_Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE", 2);
7442
7591
  Module["_balancySetDataRequestedCallback"] = createExportWrapper("balancySetDataRequestedCallback", 1);
7443
7592
  Module["_balancyViewAllowOptimization"] = createExportWrapper("balancyViewAllowOptimization", 1);
7444
7593
  Module["_balancyConfigLaunch"] = createExportWrapper("balancyConfigLaunch", 1);
@@ -7467,6 +7616,8 @@ var Balancy = function() {
7467
7616
  Module["__Z35jsbalancyDailyBonus_claimNextRewardPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z35jsbalancyDailyBonus_claimNextRewardPN7Balancy4Data8BaseDataE", 1);
7468
7617
  Module["__Z38jsbalancyDailyBonus_canClaimNextRewardPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z38jsbalancyDailyBonus_canClaimNextRewardPN7Balancy4Data8BaseDataE", 1);
7469
7618
  Module["__Z47jsbalancyDailyBonus_getSecondsTillTheNextRewardPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z47jsbalancyDailyBonus_getSecondsTillTheNextRewardPN7Balancy4Data8BaseDataE", 1);
7619
+ Module["__Z31jsbalancyBattlePass_claimRewardPN7Balancy4Data8BaseDataEi"] = createExportWrapper("_Z31jsbalancyBattlePass_claimRewardPN7Balancy4Data8BaseDataEi", 2);
7620
+ Module["__Z35jsbalancyBattlePass_getRewardStatusPN7Balancy4Data8BaseDataEi"] = createExportWrapper("_Z35jsbalancyBattlePass_getRewardStatusPN7Balancy4Data8BaseDataEi", 2);
7470
7621
  Module["__Z35jsbalancyOfferGroupInfo_CanPurchasePN7Balancy4Data8BaseDataEPNS_5Utils15JsonBasedObjectE"] = createExportWrapper("_Z35jsbalancyOfferGroupInfo_CanPurchasePN7Balancy4Data8BaseDataEPNS_5Utils15JsonBasedObjectE", 2);
7471
7622
  Module["__Z51jsbalancyOfferInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z51jsbalancyOfferInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE", 1);
7472
7623
  Module["__Z51jsbalancyEventInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z51jsbalancyEventInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE", 1);
@@ -7484,7 +7635,7 @@ var Balancy = function() {
7484
7635
  Module["__Z18jsbalancyGetStatusv"] = createExportWrapper("_Z18jsbalancyGetStatusv", 0);
7485
7636
  Module["_balancyGetTimeOffset"] = createExportWrapper("balancyGetTimeOffset", 0);
7486
7637
  Module["_balancySetTimeOffset"] = createExportWrapper("balancySetTimeOffset", 1);
7487
- Module["__Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEb"] = createExportWrapper("_Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEb", 3);
7638
+ Module["__Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEib"] = createExportWrapper("_Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEib", 4);
7488
7639
  Module["_emscripten_websocket_on_connection_status"] = createExportWrapper("emscripten_websocket_on_connection_status", 3);
7489
7640
  Module["_emscripten_websocket_on_socketio_event"] = createExportWrapper("emscripten_websocket_on_socketio_event", 5);
7490
7641
  Module["_emscripten_websocket_on_socketio_error"] = createExportWrapper("emscripten_websocket_on_socketio_error", 3);
@@ -7566,13 +7717,16 @@ var Balancy = function() {
7566
7717
  Module["_balancyDailyBonus_claimNextReward"] = createExportWrapper("balancyDailyBonus_claimNextReward", 1);
7567
7718
  Module["_balancyDailyBonus_canClaimNextReward"] = createExportWrapper("balancyDailyBonus_canClaimNextReward", 1);
7568
7719
  Module["_balancyDailyBonus_getSecondsTillTheNextReward"] = createExportWrapper("balancyDailyBonus_getSecondsTillTheNextReward", 1);
7720
+ Module["_balancyBattlePass_claimReward"] = createExportWrapper("balancyBattlePass_claimReward", 2);
7721
+ Module["_balancyBattlePass_getRewardStatus"] = createExportWrapper("balancyBattlePass_getRewardStatus", 2);
7569
7722
  Module["_balancySoftPurchaseStoreItem"] = createExportWrapper("balancySoftPurchaseStoreItem", 1);
7570
7723
  Module["_balancySoftPurchaseShopSlot"] = createExportWrapper("balancySoftPurchaseShopSlot", 1);
7571
7724
  Module["_balancySoftPurchaseGameOffer"] = createExportWrapper("balancySoftPurchaseGameOffer", 1);
7572
7725
  Module["_balancySoftPurchaseGameOfferGroup"] = createExportWrapper("balancySoftPurchaseGameOfferGroup", 2);
7726
+ Module["__Z22_balancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_8functionIFvS5_EEE"] = createExportWrapper("_Z22_balancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_8functionIFvS5_EEE", 2);
7573
7727
  Module["_balancyWebViewRequest"] = createExportWrapper("balancyWebViewRequest", 1);
7574
7728
  Module["_balancyGetProductsIdAndType"] = createExportWrapper("balancyGetProductsIdAndType", 1);
7575
- Module["_balancyGetParsedObject"] = createExportWrapper("balancyGetParsedObject", 2);
7729
+ Module["_balancyGetParsedObject"] = createExportWrapper("balancyGetParsedObject", 3);
7576
7730
  var _fflush = createExportWrapper("fflush", 1);
7577
7731
  var _strerror = createExportWrapper("strerror", 1);
7578
7732
  var _setThrew = createExportWrapper("setThrew", 2);