Skip to content

feat: add ASGI websocket spike with docs and tests - #67

Merged
ZhuchkaTriplesix merged 6 commits into
devfrom
issue-52-websocket
Apr 27, 2026
Merged

ZhuchkaTriplesix merged 6 commits into
devfrom
issue-52-websocket

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • add an ASGI websocket bridge path with a minimal WebSocket helper (accept, receive/send, close)
  • add @app.websocket("/path") registration and dispatch for exact-path websocket handlers on the ASGI entry
  • add websocket spike docs and a websocket echo flow test, and update feature/docs index references

Test plan

  • make test
  • verify tests/test_websocket_asgi.py::test_asgi_websocket_echo_flow passes
  • validate no regressions in existing HTTP/ASGI tests from the same run

Closes #52

Introduce a minimal WebSocket helper and ASGI websocket dispatch path so the optional ASGI entry can handle websocket scopes without touching the RSGI HTTP pipeline.
Allow applications to register exact-path websocket handlers and dispatch them through the ASGI bridge as a practical spike for issue #52.
Add an end-to-end style websocket test for connect, receive, send, and close to validate the new ASGI websocket spike behavior.
Document the new websocket API, its current ASGI-only scope, and the split between Python spike implementation and future Rust/RSGI work.
Add the websocket page to the main documentation index so the new ASGI spike API is discoverable.
Mark websocket support as partial via the ASGI spike and clarify that RSGI-native websocket support is still pending.
@ZhuchkaTriplesix ZhuchkaTriplesix added this to the v0.2.0 milestone Apr 27, 2026
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Apr 27, 2026
@ZhuchkaTriplesix ZhuchkaTriplesix linked an issue Apr 27, 2026 that may be closed by this pull request

@ZhuchkaTriplesix ZhuchkaTriplesix left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

123

@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 5373baa into dev Apr 27, 2026
16 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue-52-websocket branch April 27, 2026 09:17
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.

research+feat: WebSocket support (Granian / ASGI integration)

1 participant