Real-time chat with Fitz: typed WebSockets and AsyncAPI auto-generated
This article shows how to add real-time chat functionality to a URL shortener using typed WebSockets and AsyncAPI auto-generated schema. The same authentication and types are used as in Part 2, with a minimal code change of ~40 lines. The WebSocket endpoint is registered with the @ws decorator, which also handles authentication and typed connection.