Skip to content

Commit

Permalink
fix: 각 소켓 메세지 한 번만 가게
Browse files Browse the repository at this point in the history
  • Loading branch information
LWJ0513 committed Mar 11, 2024
1 parent 06149cd commit f3de55e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions backend/games/consumers/GameConsumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ async def _send_end_message(self, match: Result):
'data': data
}
)
await self.game_end({
'type': type_,
'data': data
})
# await self.game_end({
# 'type': type_,
# 'data': data
# })

async def _send_start_message(self, match, group_name):
data = {
Expand Down Expand Up @@ -409,10 +409,10 @@ async def _send_start_message(self, match, group_name):
'data': data
}
)
await self.game_start({
'type': 'game_start',
'data': data
})
# await self.game_start({
# 'type': 'game_start',
# 'data': data
# })

async def _send_in_game_message(self, match, group_name):
data = {
Expand All @@ -438,10 +438,10 @@ async def _send_in_game_message(self, match, group_name):
'data': data
}
)
await self.in_game({
'type': 'in_game',
'data': data
})
# await self.in_game({
# 'type': 'in_game',
# 'data': data
# })

async def game_info(self, event):
try:
Expand Down

0 comments on commit f3de55e

Please sign in to comment.