@trap_stevo/filetide 0.0.15 → 0.0.17
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 +4 -6
- package/package.json +1 -1
package/dist/cjs/FileMessager.js
CHANGED
|
@@ -112,19 +112,17 @@ class FileMessager {
|
|
|
112
112
|
console.log(`File transfer completed: ${data.fileName}`);
|
|
113
113
|
}
|
|
114
114
|
handleClientsOnline(clientID) {
|
|
115
|
-
|
|
115
|
+
const connectionDetails = FileNetClientManager.getOnlineClient(clientID);
|
|
116
|
+
if (!connectionDetails) {
|
|
116
117
|
console.log(`Client ~ ${clientID} not authorized.`);
|
|
117
118
|
return;
|
|
118
119
|
}
|
|
119
|
-
const
|
|
120
|
-
const client = this.onlineClients.get(connectionID);
|
|
120
|
+
const client = this.onlineClients.get(connectionDetails.id);
|
|
121
121
|
if (!client) {
|
|
122
122
|
console.log(`Client ~ ${clientID} not found.`);
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
|
-
this.fileNet.emitToTide(
|
|
126
|
-
currentClients: FileNetClientManager.getOnlineClients()
|
|
127
|
-
});
|
|
125
|
+
this.fileNet.emitToTide(connectionDetails.tideID, "current-online-clients", Object.fromEntries(FileNetClientManager.getOnlineClients()));
|
|
128
126
|
return;
|
|
129
127
|
}
|
|
130
128
|
handleClientOnline(clientID, tideID, pClientID, connectionID) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trap_stevo/filetide",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
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": {
|