expresso-macchiato 0.3.8-dev.5 → 0.3.8-dev.6
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/index.js +0 -2
- package/dist/index.mjs +0 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -737,7 +737,6 @@ var SocketWrapper = class {
|
|
|
737
737
|
const metadata = client.handshake.query.metadata;
|
|
738
738
|
const finalClientId = this.data.clientConnectionKey ? _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _45 => _45[this.data.clientConnectionKey]]), () => ( client.id)) : client.id;
|
|
739
739
|
this.connectedClients.set(finalClientId, { socket: client, connectedAt: /* @__PURE__ */ new Date(), metadata });
|
|
740
|
-
log.cyan(`[SOCKETWRAPPER] [${this.socketNamespace.toUpperCase()}] Client ${client.id} connected`);
|
|
741
740
|
if (this.data.afterClientConnect) this.data.afterClientConnect(this, client, metadata);
|
|
742
741
|
for (const eventName in this.data.listeners) client.on(eventName, (...params) => _optionalChain([this, 'access', _46 => _46.data, 'access', _47 => _47.listeners, 'optionalAccess', _48 => _48[eventName], 'call', _49 => _49(this, client, metadata, ...params)]));
|
|
743
742
|
client.on("disconnect", () => this.handleDisconnection(client));
|
|
@@ -753,7 +752,6 @@ var SocketWrapper = class {
|
|
|
753
752
|
try {
|
|
754
753
|
if (!this.namespace) throw new Error("Socket.IO not initialized");
|
|
755
754
|
this.connectedClients.delete(client.id);
|
|
756
|
-
log.cyan(`[SOCKETWRAPPER] [${this.socketNamespace.toUpperCase()}] Client ${client.id} disconnected`);
|
|
757
755
|
if (this.data.onClientDisconnect) this.data.onClientDisconnect(client);
|
|
758
756
|
} catch (err) {
|
|
759
757
|
fullLogNok(`SOCKETWRAPPER`, `[${this.socketNamespace.toUpperCase()}]`, err);
|
package/dist/index.mjs
CHANGED
|
@@ -737,7 +737,6 @@ var SocketWrapper = class {
|
|
|
737
737
|
const metadata = client.handshake.query.metadata;
|
|
738
738
|
const finalClientId = this.data.clientConnectionKey ? metadata?.[this.data.clientConnectionKey] ?? client.id : client.id;
|
|
739
739
|
this.connectedClients.set(finalClientId, { socket: client, connectedAt: /* @__PURE__ */ new Date(), metadata });
|
|
740
|
-
log.cyan(`[SOCKETWRAPPER] [${this.socketNamespace.toUpperCase()}] Client ${client.id} connected`);
|
|
741
740
|
if (this.data.afterClientConnect) this.data.afterClientConnect(this, client, metadata);
|
|
742
741
|
for (const eventName in this.data.listeners) client.on(eventName, (...params) => this.data.listeners?.[eventName](this, client, metadata, ...params));
|
|
743
742
|
client.on("disconnect", () => this.handleDisconnection(client));
|
|
@@ -753,7 +752,6 @@ var SocketWrapper = class {
|
|
|
753
752
|
try {
|
|
754
753
|
if (!this.namespace) throw new Error("Socket.IO not initialized");
|
|
755
754
|
this.connectedClients.delete(client.id);
|
|
756
|
-
log.cyan(`[SOCKETWRAPPER] [${this.socketNamespace.toUpperCase()}] Client ${client.id} disconnected`);
|
|
757
755
|
if (this.data.onClientDisconnect) this.data.onClientDisconnect(client);
|
|
758
756
|
} catch (err) {
|
|
759
757
|
fullLogNok(`SOCKETWRAPPER`, `[${this.socketNamespace.toUpperCase()}]`, err);
|