@trap_stevo/filetide 0.0.61 → 0.0.62
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/cjs/FileMessager.js +6 -0
- package/dist/cjs/FileTide.js +1 -0
- package/package.json +1 -1
package/dist/cjs/FileMessager.js
CHANGED
|
@@ -39,6 +39,8 @@ class FileMessager {
|
|
|
39
39
|
this.fileNet = new IoTide(serverOptions.port, serverOptions, true, this.onConnect.bind(this), this.onDisconnect.bind(this));
|
|
40
40
|
this.onlineClients = new OmniMap();
|
|
41
41
|
this.debugMode = debugMode;
|
|
42
|
+
this.transporterOptions = transportOptions;
|
|
43
|
+
this.options = serverOptions;
|
|
42
44
|
return;
|
|
43
45
|
}
|
|
44
46
|
onConnect(socket) {
|
|
@@ -51,6 +53,10 @@ class FileMessager {
|
|
|
51
53
|
this.onlineClients.delete(socket.id);
|
|
52
54
|
return;
|
|
53
55
|
}
|
|
56
|
+
close() {
|
|
57
|
+
this.fileNet.close();
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
54
60
|
start() {
|
|
55
61
|
this.fileNet.on("get-client-transfer-barrier-response", this.handleClientTransferBarrierResponse.bind(this));
|
|
56
62
|
this.fileNet.on("get-client-transfer-state", this.handleGetClientTransferState.bind(this));
|
package/dist/cjs/FileTide.js
CHANGED
|
@@ -254,6 +254,7 @@ class FileTide {
|
|
|
254
254
|
stopFileTide() {
|
|
255
255
|
if (this.fileNet) {
|
|
256
256
|
FileTide.outputGradient("Stopping FileTide...", significantMessageColors);
|
|
257
|
+
this.fileNet.close();
|
|
257
258
|
this.fileNet = null;
|
|
258
259
|
FileTide.outputGradient("Stopped FileTide.", significantMessageColors);
|
|
259
260
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trap_stevo/filetide",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.62",
|
|
4
4
|
"description": "Revolutionizing real-time file transfer with seamless, instant communication across any device. Deliver files instantly, regardless of platform, and experience unparalleled speed and control in managing transfers. Elevate your file-sharing capabilities with a tool designed for precision, efficiency, and effortless connectivity.",
|
|
5
5
|
"main": "dist/cjs/FileTide.js",
|
|
6
6
|
"scripts": {
|