diff --git a/examples/websocket_status_example.py b/examples/websocket_status_example.py index b0eed48..9b166f7 100644 --- a/examples/websocket_status_example.py +++ b/examples/websocket_status_example.py @@ -28,9 +28,13 @@ async def state( msg: Dict[Any, Any], args: Tuple[str]) -> None: + # For debugging print(args[0], 'received', len(msg), 'symbols') + # Write new info dictionary server._info = msg + + # Server 1 test is online print( args[0], server.subdomain, @@ -38,6 +42,13 @@ async def state( server.status ) + # Server 1 players: ['DarkCat09', 'someone'] + print( + args[0], + 'players:', + server.players_list + ) + # Main function async def main() -> None: