xiongzhu 1 an în urmă
părinte
comite
62e5e20c32
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      src/events/events.gateway.ts

+ 2 - 2
src/events/events.gateway.ts

@@ -28,8 +28,8 @@ export class EventsGateway implements OnGatewayInit, OnGatewayConnection, OnGate
         Logger.log('Initialized!', 'EventsGateway')
     }
 
-    handleConnection(client: any, ...args: any[]) {
-        Logger.log('Client connected: ' + client.id + ', ' + args, 'EventsGateway')
+    handleConnection(client: Socket, ...args: any[]) {
+        Logger.log('Client connected: ' + client.id + ', ' + client.handshake.query.device, 'EventsGateway')
     }
 
     handleDisconnect(client: any) {