@trap_stevo/filetide-client 0.0.27 → 0.0.29
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.
|
@@ -283,16 +283,16 @@ class FileTideClient {
|
|
|
283
283
|
}
|
|
284
284
|
return;
|
|
285
285
|
}
|
|
286
|
-
changeRoom(room, completion, onReconnect) {
|
|
286
|
+
changeRoom(room, completion, onReconnect, onDisconnect, ...clientConfigurations) {
|
|
287
287
|
this.currentRoom = room;
|
|
288
288
|
FileTide.outputGradient(`[${this.deviceName}] Updated room to ${this.currentRoom}`, ["#4D96FF", "#89CFF0"]);
|
|
289
|
-
this.startClient(this.clientOptions, this.connectionOptions, this.transportOptions, this.messagerSettings, onReconnect);
|
|
289
|
+
this.startClient(this.clientOptions, this.connectionOptions, this.transportOptions, this.messagerSettings, onReconnect, onDisconnect, ...clientConfigurations);
|
|
290
290
|
if (completion) {
|
|
291
291
|
completion(room, true);
|
|
292
292
|
}
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
async changeClientID(clientID, completion, onReconnect) {
|
|
295
|
+
async changeClientID(clientID, completion, onReconnect, onDisconnect, ...clientConfigurations) {
|
|
296
296
|
const clientOnline = await this.fileMessagerInstance.clientTide.emitEventWithResponse(clientID, "check-client-online", "retrieved-client-online", {
|
|
297
297
|
clientID
|
|
298
298
|
}, 5000);
|
|
@@ -312,7 +312,7 @@ class FileTideClient {
|
|
|
312
312
|
this.fileMessagerInstance.clientTide.closeSocket(this.deviceName);
|
|
313
313
|
this.deviceName = clientID;
|
|
314
314
|
FileTide.outputGradient(`[${pDeviceName}] Updated client name to ${this.deviceName}`, ["#4D96FF", "#89CFF0"]);
|
|
315
|
-
this.startClient(this.clientOptions, this.connectionOptions, this.transportOptions, this.messagerSettings, onReconnect);
|
|
315
|
+
this.startClient(this.clientOptions, this.connectionOptions, this.transportOptions, this.messagerSettings, onReconnect, onDisconnect, ...clientConfigurations);
|
|
316
316
|
updatedClientID = true;
|
|
317
317
|
}
|
|
318
318
|
if (completion) {
|
|
@@ -320,10 +320,10 @@ class FileTideClient {
|
|
|
320
320
|
}
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
|
-
changeTideUrl(url, completion, onReconnect) {
|
|
323
|
+
changeTideUrl(url, completion, onReconnect, onDisconnect, ...clientConfigurations) {
|
|
324
324
|
this.tideUrl = url;
|
|
325
325
|
FileTide.outputGradient(`[${this.deviceName}] Updated tide URL to ${this.tideUrl}`, ["#4D96FF", "#89CFF0"]);
|
|
326
|
-
this.startClient(this.clientOptions, this.connectionOptions, this.transportOptions, this.messagerSettings, onReconnect);
|
|
326
|
+
this.startClient(this.clientOptions, this.connectionOptions, this.transportOptions, this.messagerSettings, onReconnect, onDisconnect, ...clientConfigurations);
|
|
327
327
|
if (completion) {
|
|
328
328
|
completion(url, true);
|
|
329
329
|
}
|
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.29",
|
|
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": "See License in LICENSE.md",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@trap_stevo/filetide": "^0.0.
|
|
40
|
+
"@trap_stevo/filetide": "^0.0.57",
|
|
41
41
|
"@trap_stevo/iotide": "^0.0.41",
|
|
42
42
|
"@trap_stevo/legendarybuilderpronodejs-utilities": "^1.0.43",
|
|
43
43
|
"chalk": "^4.1.2",
|