import GameService from "@/Services/GameService" ; class ServerHandlerModule { async onSocketStart ( ) { await Promise . all ( [ this . consolidateOnGoingGameRoundCounters ( ) , ] ) ; } private async consolidateOnGoingGameRoundCounters ( ) { const games = await GameService . getGameList ( ) ; const onGoingGames = games . filter ( ( { status } ) => status === "playing" ) ; await Promise . all ( onGoingGames . map ( ( ) => { } ) ) ; } } export default new ServerHandlerModule ( ) ;