summaryrefslogtreecommitdiff
path: root/src/leap/common/events/examples/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/common/events/examples/server.py')
-rw-r--r--src/leap/common/events/examples/server.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/common/events/examples/server.py b/src/leap/common/events/examples/server.py
new file mode 100644
index 0000000..f40f8dc
--- /dev/null
+++ b/src/leap/common/events/examples/server.py
@@ -0,0 +1,4 @@
+from twisted.internet import reactor
+from leap.common.events.server import ensure_server
+reactor.callWhenRunning(ensure_server)
+reactor.run()