examples/webrtc/signalling: Fix compatibility with Python 3.10
authorMatthew Waters <matthew@centricular.com>
Fri, 1 Jul 2022 05:20:31 +0000 (15:20 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 4 Jul 2022 03:17:15 +0000 (03:17 +0000)
commitb06a97c4296e748fb6579001c943d0b9fe0bc463
tree7ffd3882b89d0244ab4d8aca140d019062c1fb5e
parent735723c230f529d0a861a34fe0abc851eb5b4d88
examples/webrtc/signalling: Fix compatibility with Python 3.10

- ssl module requires an explicit TLS_SERVER role
- asyncio throws a deprecation warning when using
  asyncio.get_event_loop().  Remove custom event loop handling entirely
- No need to keep the websocket server in a member variable, can use
  a future to signal exit case along with the async with context manager
  of websockets.serve()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2698>
subprojects/gst-examples/webrtc/signalling/simple_server.py