Section 5
WebSockets & real-time
WebSocket connections are fully supported, and connection upgrades are handled for you — no extra configuration needed. Your app just needs to listen on APP_PORT.
Works out of the box
- Socket.io (Node.js)
- Django Channels (Python) — use Daphne or Uvicorn, not Gunicorn
- Phoenix Channels (Elixir)
- Gorilla WebSocket (Go)
Django Channels: use Daphne, not Gunicorn. Gunicorn is a synchronous WSGI server and cannot handle WebSocket connections. Use Daphne as your
RUN_COMMAND:bash
daphne -b 0.0.0.0 -p 8000 core.asgi:application