@wendongfly/myhi 1.0.67 → 1.0.69

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/chat.html CHANGED
@@ -950,7 +950,14 @@
950
950
  };
951
951
 
952
952
  // ── Socket.IO ──────────────────────────────────
953
- const socket = io({ transports: ['websocket'] });
953
+ const socket = io({
954
+ transports: ['websocket', 'polling'],
955
+ reconnection: true,
956
+ reconnectionAttempts: Infinity,
957
+ reconnectionDelay: 1000,
958
+ reconnectionDelayMax: 10000,
959
+ timeout: 30000,
960
+ });
954
961
  let isScrollbackPhase = false;
955
962
 
956
963
  function showOverlay(text, showBack = false) {
package/dist/index.html CHANGED
@@ -504,7 +504,14 @@
504
504
  </div>
505
505
 
506
506
  <script>
507
- const socket = io({ transports: ['websocket'] });
507
+ const socket = io({
508
+ transports: ['websocket', 'polling'],
509
+ reconnection: true,
510
+ reconnectionAttempts: Infinity,
511
+ reconnectionDelay: 1000,
512
+ reconnectionDelayMax: 10000,
513
+ timeout: 30000,
514
+ });
508
515
 
509
516
  const connDot = document.getElementById('conn-dot');
510
517
  const list = document.getElementById('list');