diff --git a/examples/webrtc/dataconnection.py b/examples/webrtc/dataconnection.py index b94006f..0432ad7 100644 --- a/examples/webrtc/dataconnection.py +++ b/examples/webrtc/dataconnection.py @@ -1,4 +1,12 @@ from aiohttp import web +import asyncio +import logging + +loop = asyncio.new_event_loop() +asyncio.set_event_loop(loop) + +logging.basicConfig(level=logging.DEBUG) + routes = web.RouteTableDef() @@ -6,7 +14,7 @@ # For this example, we use just one global connection -conn = RTCConnection() +conn = RTCConnection(loop=loop) @conn.subscribe @@ -82,4 +90,4 @@ async def cleanup(app=None): app = web.Application() app.add_routes(routes) app.on_shutdown.append(cleanup) -web.run_app(app) +web.run_app(app,loop=loop) diff --git a/js/package.json b/js/package.json index 1237396..87d5ac3 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "rtcbot", - "version": "0.2.4", + "version": "0.2.5", "description": "", "main": "dist/rtcbot.cjs.js", "module": "dist/rtcbot.esm.js", diff --git a/setup.py b/setup.py index 0413f66..f239228 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ # This call to setup() does all the work setuptools.setup( name="rtcbot", - version="0.2.4", + version="0.2.5", description="An asyncio-focused library for webrtc robot control", long_description=README, long_description_content_type="text/markdown",