refactorizacion a modulos
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user