examples/webrtc/signalling: fix compatibility with python 3.13

Fixes:

Traceback (most recent call last):
  File "/usr/lib64/python3.13/site-packages/websockets/asyncio/server.py", line 373, in conn_handler
    await self.handler(connection)
          ~~~~~~~~~~~~^^^^^^^^^^^^

TypeError: WebRTCSimpleServer.run.<locals>.handler() missing 1 required positional argument: 'path'
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8992>
This commit is contained in:
Matthew Waters 2025-05-16 22:32:36 +10:00 committed by GStreamer Marge Bot
parent 08c56f3e2d
commit ea577da12e

View File

@ -253,7 +253,7 @@ class WebRTCSimpleServer(object):
return sslctx return sslctx
async def run(self): async def run(self):
async def handler(ws, path): async def handler(ws, path=None):
''' '''
All incoming messages are handled here. @path is unused. All incoming messages are handled here. @path is unused.
''' '''