Skip to content

Conversation

@adhami3310
Copy link
Member

No description provided.

Copy link
Collaborator

@masenf masenf left a comment

Choose a reason for hiding this comment

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

still doesn't work for uvicorn in dev mode accessing on chrome

@gi0baro
Copy link

gi0baro commented Jan 28, 2025

FYI, the ASGI protocol specifies you should just use the subprotocol message field, and avoid to have sec-websocket-protocol in headers. ref: https://asgi.readthedocs.io/en/latest/specs/www.html#accept-send-event

@adhami3310
Copy link
Member Author

FYI, the ASGI protocol specifies you should just use the subprotocol message field

Thanks for the link, we were struggling with this a bit. The issue is that Granian/Uviocorn/Gunicorn behave slightly differently in different systems. We couldn't figure out why and how to reproduce it reliably so we opted out for using the header if it's there and subprotocol if it's there.

@masenf masenf merged commit 64fb78a into main Jan 28, 2025
37 checks passed
@masenf masenf deleted the fix-subprotocol-for-granian branch January 28, 2025 19:46
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.

4 participants