@trap_stevo/filetide-client 0.0.7 → 0.0.8

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.
@@ -152,13 +152,13 @@ class FileTideClient {
152
152
  broadcastClientOffline(fileMessager) {
153
153
  if (fileMessager && !this.clientDisconnected) {
154
154
  this.clientDisconnected = true;
155
- fileMessager.clientTide.emitEvent(this.currentDeviceName, "client-offline", this.currentDeviceName);
156
- FileTide.outputGradient(`[${this.currentDeviceName}] Disconnected from the file net.`, ["#00C897", "#00E0FF"]);
155
+ fileMessager.clientTide.emitEvent(this.deviceName, "client-offline", this.deviceName);
156
+ FileTide.outputGradient(`[${this.deviceName}] Disconnected from the file net.`, ["#00C897", "#00E0FF"]);
157
157
  }
158
158
  }
159
159
  startClient(clientOptions = {}, connectionOptions = {}, onConnect = null, ...clientConfigurations) {
160
160
  if (this.fileMessagerInstance && this.fileMessagerInstance.clientTide) {
161
- this.fileMessagerInstance.clientTide.closeSocket(this.currentDeviceName);
161
+ this.fileMessagerInstance.clientTide.closeSocket(this.deviceName);
162
162
  }
163
163
  fileTide.launchMessager({
164
164
  serverUrl: this.tideUrl,
@@ -174,7 +174,7 @@ class FileTideClient {
174
174
  this.clientDisconnected = false;
175
175
  FileTide.outputGradient(`[${this.deviceName}] Connected to FileTide ~ ${this.tideUrl} in ${this.currentRoom}!`, ["#00C897", "#00E0FF"]);
176
176
  fileMessager.clientTide.emitEvent(this.deviceName, "client-online", this.deviceName, fileMessager.clientTide.sockets[this.deviceName].tideID, this.pDeviceName, fileMessager.clientTide.sockets[this.deviceName].id);
177
- FileTide.outputGradient(`[${this.currentDeviceName}] Getting connected clients...`, ["#00C897", "#00E0FF"]);
177
+ FileTide.outputGradient(`[${this.deviceName}] Getting connected clients...`, ["#00C897", "#00E0FF"]);
178
178
  if (onConnect) {
179
179
  onConnect(fileMessager);
180
180
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trap_stevo/filetide-client",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
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": {
@@ -36,7 +36,7 @@
36
36
  "author": "Steven Compton",
37
37
  "license": "See License in LICENSE.md",
38
38
  "dependencies": {
39
- "@trap_stevo/filetide": "^0.0.37",
39
+ "@trap_stevo/filetide": "^0.0.38",
40
40
  "@trap_stevo/iotide": "^0.0.37",
41
41
  "@trap_stevo/legendarybuilderpronodejs-utilities": "^1.0.36",
42
42
  "chalk": "^4.1.2",