diff --git a/examples/simple_loop.py b/examples/simple_loop.py new file mode 100644 index 00000000..f3207366 --- /dev/null +++ b/examples/simple_loop.py @@ -0,0 +1,7 @@ +import asyncio +from aiomonitor import Monitor + +loop = asyncio.get_event_loop() +with Monitor(loop=loop): + print("Now you can connect with: nc localhost 50101") + loop.run_forever()