Send at every player connected

This commit is contained in:
Gregoire Parant 2020-09-21 15:11:46 +02:00
parent 8c43c67741
commit 0d2893ec75

View File

@ -402,7 +402,8 @@ export class IoSocketController {
});
socket.on(SockerIoEvent.PLAY_GLOBAL_MESSAGE, (itemEvent: unknown) => {
socket.broadcast.emit(SockerIoEvent.PLAY_GLOBAL_MESSAGE, itemEvent);
//permit to send message at every member connected
this.Io.emit(SockerIoEvent.PLAY_GLOBAL_MESSAGE, itemEvent);
});
});
}