refactorizacion a modulos

This commit is contained in:
2024-04-02 02:24:54 +02:00
parent 285761e075
commit b460bd6c65
8 changed files with 112 additions and 80 deletions

View File

@@ -43,7 +43,7 @@ export class SalaChatGateway
}
client.leave('chat_general');
}
@SubscribeMessage('chatMsg')
handleMsg(client: Socket, msg: string) {
const userId = client.handshake.auth.userId;
@@ -63,6 +63,6 @@ export class SalaChatGateway
handleCreaPartida(client: Socket) {
const userId = client.handshake.auth.userId;
const partida = this.salaChatService.creaPartida(userId);
this.server.to('chat_general').emit('on_create_partida', partida);
this.server.to('chat_general').emit('onCrearPartida', partida);
}
}