diff --git a/pywebio/platform/aiohttp.py b/pywebio/platform/aiohttp.py index bfc70c2b..3034bc95 100644 --- a/pywebio/platform/aiohttp.py +++ b/pywebio/platform/aiohttp.py @@ -81,6 +81,7 @@ def close_from_session(): session_info['user_ip'] = request.remote session_info['request'] = request session_info['backend'] = 'aiohttp' + session_info['protocol'] = 'websocket' app_name = request.query.getone('app', 'index') application = applications.get(app_name) or applications['index']