From: Alexandru Ardelean Date: Sat, 21 Mar 2026 06:53:26 +0000 (+0000) Subject: python-socketio: bump to 5.11.2 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e2e0362a17c7ce59b9c391d756ef2b6f5069109e;p=openwrt-packages.git python-socketio: bump to 5.11.2 Changelog since 5.8.0: - v5.9.0: Optimize performance and memory usage for broadcasts - v5.10.0: Add SimpleClient and AsyncSimpleClient classes; add reporting to Socket.IO Admin UI; add server shutdown() function; make async enter_room/leave_room proper coroutines - v5.11.0: Add catch-all namespace support; improve pubsub manager robustness; fix background task garbage collection - v5.11.1: Add connection retry option in client; drop Python 3.7 support; add Python 3.12 support - v5.11.2: Improve routing to catch-all namespace handlers; add option to disable routing in ASGIApp Add test.sh. Full changelog: https://github.com/miguelgrinberg/python-socketio/releases Signed-off-by: Alexandru Ardelean --- diff --git a/lang/python/python-bidict/Makefile b/lang/python/python-bidict/Makefile index fed0924ba..612ee2680 100644 --- a/lang/python/python-bidict/Makefile +++ b/lang/python/python-bidict/Makefile @@ -18,6 +18,8 @@ PKG_MAINTAINER:=Jan Pavlinec , Alexandru Ardelean , Alexandru Ardelean PKG_LICENSE:=MIT diff --git a/lang/python/python-socketio/test.sh b/lang/python/python-socketio/test.sh new file mode 100644 index 000000000..1b7c723bb --- /dev/null +++ b/lang/python/python-socketio/test.sh @@ -0,0 +1,38 @@ +#!/bin/sh + +[ "$1" = python3-socketio ] || exit 0 + +python3 - <<'EOF' +import socketio + +# Test server creation and event registration +sio = socketio.Server() + +received = [] + +@sio.event +def connect(sid, environ): + received.append(('connect', sid)) + +@sio.event +def message(sid, data): + received.append(('message', data)) + +@sio.event +def disconnect(sid): + received.append(('disconnect', sid)) + +# Verify the handlers are registered +assert 'connect' in sio.handlers['/'] +assert 'message' in sio.handlers['/'] +assert 'disconnect' in sio.handlers['/'] + +# Test namespace creation +ns = socketio.Namespace('/test') +sio.register_namespace(ns) +assert '/test' in sio.namespace_handlers + +# Test AsyncServer exists +asio = socketio.AsyncServer() +assert asio is not None +EOF