Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
print('player1', self.player1.username)
print('player2', self.player2.username)
print('player1_ws', self.player1.ws)
print('player2_ws', self.player2.ws)
print('player1_ws_id', id(self.player1.ws))
print('player2_ws_id', id(self.player2.ws))
print(self.player1.ws == self.player2.ws)
>>> player1 testuser
>>> player2 testuser2
>>> player1_ws <WebSocketResponse Switching Protocols GET /api/ws >
>>> player2_ws <WebSocketResponse Switching Protocols GET /api/ws >
>>> player1_ws_id 140607446885432
>>> player2_ws_id 140607446885488
>>> True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment