Skip to content

Add chanx to Utils - #369

Open
huynguyengl99 wants to merge 1 commit into
mjhea0:mainfrom
huynguyengl99:add-chanx
Open

huynguyengl99 wants to merge 1 commit into
mjhea0:mainfrom
huynguyengl99:add-chanx

Conversation

@huynguyengl99

@huynguyengl99 huynguyengl99 commented Oct 31, 2026 •

Copy link
Copy Markdown

Adds chanx to Utils, in alphabetical order. Disclosure: I'm the author.

Why it's awesome: FastAPI turns typed routes into an OpenAPI schema and /docs, but @app.websocket gets none of that. chanx brings the same idea to WebSockets: each message is a Pydantic model, each handler takes one, and the app serves an AsyncAPI 3.0 spec and docs page generated from the handlers. Typed Python and TypeScript clients are generated from that spec, so renaming a field fails the frontend type check in CI. It also handles groups and broadcasting through a channel layer (in-memory or Redis).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant