Change8

@vercel/python-runtime@0.16.0

📦 vercel-functionsView on GitHub →
1 features🔧 2 symbols

Summary

This release introduces WebSocket support for WSGI applications, allowing bidirectional streaming after the initial handshake. The raw connection socket is now exposed in the WSGI environ for handling WebSocket upgrades.

✨ New Features

  • Support WebSockets for WSGI apps (e.g. Flask via `flask-sock`). The runtime now exposes the raw connection socket in the WSGI `environ` as `werkzeug.socket` / `gunicorn.socket` for WebSocket upgrade requests, and ends the request lifecycle once the `101` handshake is written so the platform can begin bidirectional streaming — matching the ASGI `websocket.accept` behavior.

Affected Symbols