Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add specific contexts for websocket types, delete BasicWebSocketContext #67

Merged
merged 6 commits into from
Jul 5, 2024

Conversation

adam-fowler
Copy link
Member

@adam-fowler adam-fowler commented Jul 3, 2024

  • Add WebSocketClient.Context
  • Add WebSocketExtensionContext
  • Add HTTP1WebSocketUpgradeChannel.Context
  • Remove BasicWebSocketContext

Makes it clearer what contexts are for, removes one top level public symbol

@adam-fowler adam-fowler requested a review from Joannis July 3, 2024 07:47
@Joannis
Copy link
Member

Joannis commented Jul 3, 2024

I'm don't understand the change that well. Aren't these all the same context? And what's the purpose of these contexts now?

@adam-fowler
Copy link
Member Author

I'm don't understand the change that well. Aren't these all the same context? And what's the purpose of these contexts now?

Ok they are all the same structure but they come from different sources. One is the context used by the WebSocket client, one is used by the WebSocket upgrade server channel and then the last is data required by the WebSocket extensions which happens to be the same as what was BasicWebSocketContext.

Copy link
Member

@Joannis Joannis left a comment

Choose a reason for hiding this comment

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

Makes sense to me!

@adam-fowler adam-fowler merged commit e5e169c into main Jul 5, 2024
3 of 4 checks passed
@adam-fowler adam-fowler deleted the contexts branch July 5, 2024 11:32
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.

2 participants