@trap_stevo/filetide-client 0.0.24 → 0.0.25
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.
|
@@ -284,7 +284,13 @@ class FileTideClient {
|
|
|
284
284
|
} else if (!clientOnline || !clientOnline.online || clientOnline.client.id === this.connectionID) {
|
|
285
285
|
const pDeviceName = this.deviceName;
|
|
286
286
|
this.currentDeviceName = pDeviceName;
|
|
287
|
-
this.
|
|
287
|
+
this.clientDisconnected = true;
|
|
288
|
+
const transferStates = fileTide.getTidingTransferStates();
|
|
289
|
+
this.fileMessagerInstance.clientTide.emitEvent(this.currentDeviceName || pDeviceName, "client-offline", {
|
|
290
|
+
clientID: this.currentDeviceName || pDeviceName,
|
|
291
|
+
connectionID: this.connectionID,
|
|
292
|
+
disconnectedDuringTransfer: transferStates.size > 0 ? true : false
|
|
293
|
+
});
|
|
288
294
|
this.deviceName = clientID;
|
|
289
295
|
FileTide.outputGradient(`[${this.deviceName}] Updated client name to ${this.deviceName}`, ["#4D96FF", "#89CFF0"]);
|
|
290
296
|
this.startClient({}, {}, {}, {}, onReconnect);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trap_stevo/filetide-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
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": {
|