sunuid-sdk 1.0.56 → 1.0.58

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.
@@ -642,11 +642,14 @@
642
642
  // Initialiser la connexion WebSocket si elle n'existe pas
643
643
  if (!this.socket) {
644
644
  console.log('🌐 Initialisation Socket.IO...');
645
- this.socket = io('wss://samasocket.fayma.sn:9443', {
645
+
646
+ // Générer un identifiant aléatoire pour la session WebSocket
647
+ var randomId = 'web_' + Math.random().toString(36).slice(2) + '_' + Date.now();
648
+ this.socket = io('wss://socket.sunuid.com:9446', {
646
649
  query: {
647
- token: this.config.clientId,
650
+ token: randomId,
648
651
  type: 'web',
649
- userId: this.config.clientId,
652
+ userId: randomId,
650
653
  username: ip
651
654
  },
652
655
  transports: ['websocket', 'polling']