Skip to content

Commit

Permalink
add simple example of usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jettify committed Dec 10, 2016
1 parent 0fd82cb commit 16d0545
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/simple_loop.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 16d0545

Please sign in to comment.