Zappa 0.62.0 ships with native WebSocket support via API Gateway WebSocket APIs. You can now handle persistent WebSocket connections directly in your Lambda functions — no extra infrastructure, no configuration, no new dependencies.
Zappa provides two handler patterns: a decorator-based approach for simple use cases and a class-based approach when you want structure and shared state. Both work with the same underlying API Gateway WebSocket API and can coexist with your existing WSGI/ASGI app.
When you zappa deploy or zappa update, Zappa scans your project for from zappa.websocket import ... statements. When found, it: