def on_close(self):
"""Overwrites WebSocketHandler.close.
Close Game, send message to Paired client that game has ended
"""
self.send_pair_message(action="end", game_id=self.game_id, result="A")
self.game_manager.end_game(self.game_id)
评论列表
文章目录