sunuid-sdk 1.0.56 → 1.0.57
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/sunuid-sdk.esm.js +5 -2
- package/dist/sunuid-sdk.esm.js.map +1 -1
- package/dist/sunuid-sdk.js +5 -2
- package/dist/sunuid-sdk.js.map +1 -1
- package/dist/sunuid-sdk.min.js +1 -1
- package/dist/sunuid-sdk.min.js.map +1 -1
- package/examples/secure-integration-example.js +0 -185
- package/examples/secure-integration.html +1 -1
- package/package.json +1 -1
package/dist/sunuid-sdk.esm.js
CHANGED
|
@@ -639,11 +639,14 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
639
639
|
// Initialiser la connexion WebSocket si elle n'existe pas
|
|
640
640
|
if (!this.socket) {
|
|
641
641
|
console.log('🌐 Initialisation Socket.IO...');
|
|
642
|
+
|
|
643
|
+
// Générer un identifiant aléatoire pour la session WebSocket
|
|
644
|
+
var randomId = 'web_' + Math.random().toString(36).slice(2) + '_' + Date.now();
|
|
642
645
|
this.socket = io('wss://samasocket.fayma.sn:9443', {
|
|
643
646
|
query: {
|
|
644
|
-
token:
|
|
647
|
+
token: randomId,
|
|
645
648
|
type: 'web',
|
|
646
|
-
userId:
|
|
649
|
+
userId: randomId,
|
|
647
650
|
username: ip
|
|
648
651
|
},
|
|
649
652
|
transports: ['websocket', 'polling']
|