Skip to content

Commit

Permalink
Add ServerContext with SimpleJsonProtocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Askaholic committed Jul 25, 2020
1 parent c75931f commit b521a4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server.py
Expand Up @@ -23,6 +23,7 @@
from server.ice_servers.nts import TwilioNTS
from server.player_service import PlayerService
from server.profiler import Profiler
from server.protocol import SimpleJsonProtocol


async def main():
Expand Down Expand Up @@ -92,6 +93,7 @@ async def restart_control_server():
config.register_callback("CONTROL_SERVER_PORT", restart_control_server)

await instance.listen(("", 8001))
await instance.listen(("", 8002), SimpleJsonProtocol)

server.metrics.info.info({
"version": os.environ.get("VERSION") or "dev",
Expand Down

0 comments on commit b521a4a

Please sign in to comment.