feat: wire LogService into network layer

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-03-10 02:21:08 +00:00
parent 0d8573e11f
commit 191770acbe
+2
View File
@@ -73,6 +73,7 @@ export class SocketServer {
this.io.on('connection', (socket) => {
const playerId = socket.id;
console.log(`Player connected: ${playerId}`);
this.gameLoop.logService.log('info', 'Network', `Player connected: ${playerId}`);
// Create player entity (starts in camera mode — no avatar)
const world = this.gameLoop.world;
@@ -167,6 +168,7 @@ export class SocketServer {
// Handle disconnect
socket.on('disconnect', () => {
console.log(`Player disconnected: ${playerId}`);
this.gameLoop.logService.log('info', 'Network', `Player disconnected: ${playerId}`);
this.superlativesSubscribers.delete(socket);
this.stopSuperlativesTimerIfEmpty();
this.followedEntities.delete(socket.id);