@trap_stevo/filetide-client 0.0.69 → 0.0.71

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.
@@ -158,22 +158,21 @@ class FileTideClient {
158
158
  }
159
159
  let enterRoom = null;
160
160
  let pendingConnectionArguments = null;
161
- let connectionHandled = false;
161
+ let handledConnectionID = null;
162
162
  const handleConnection = async (...connectionArguments) => {
163
163
  if (typeof enterRoom !== "function") {
164
164
  pendingConnectionArguments = connectionArguments;
165
165
  return;
166
166
  }
167
- if (connectionHandled) {
168
- return;
169
- }
170
- connectionHandled = true;
171
- this.clientDisconnected = false;
172
167
  const socket = this.fileMessagerInstance?.clientTide?.sockets?.[this.deviceName];
173
168
  if (!socket) {
174
- connectionHandled = false;
175
169
  return;
176
170
  }
171
+ if (handledConnectionID === socket.id) {
172
+ return;
173
+ }
174
+ handledConnectionID = socket.id;
175
+ this.clientDisconnected = false;
177
176
  this.connectionID = socket.id;
178
177
 
179
178
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trap_stevo/filetide-client",
3
- "version": "0.0.69",
3
+ "version": "0.0.71",
4
4
  "description": "Seamless, real-time file transfers between devices with effortless connectivity. Allowing for powerful, instant, secure, and cross-platform file sharing, enabling efficient and reliable data transfers in any network environment.",
5
5
  "main": "dist/cjs/FileTideClient.js",
6
6
  "exports": {
@@ -37,7 +37,7 @@
37
37
  "author": "Steven Compton",
38
38
  "license": "SCL-1.0-Universal",
39
39
  "dependencies": {
40
- "@trap_stevo/filetide": "^0.1.2",
40
+ "@trap_stevo/filetide": "^0.1.4",
41
41
  "@trap_stevo/iotide": "^0.0.46",
42
42
  "@trap_stevo/legendarybuilderpronodejs-utilities": "^1.0.51",
43
43
  "chalk": "^4.1.2"