feat: wire LogService into network layer
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user