-
Expose WebSocket connection id as ws.state.logid on accept
released this
2026-10-21 19:40:24 +00:00 | 5 commits to main since this releaseStore the two-digit WS id (colored when stderr supports color, plain
otherwise) in the ASGI scope state so user code can include it in its
own log lines via websocket.state.logid.Move terminal helpers (use_color, strip_ansi, display width) into a new
dependency-free fastapi_vue.tty module, absorbing termwidth.py, to keep
imports one-directional and avoid the logging/accesslog cycle.Downloads