Skip to content

Don't throw error if there's a protocol mismatch between client and server #103

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

Merged
merged 1 commit into from
May 6, 2025

Conversation

mattt
Copy link
Contributor

@mattt mattt commented May 6, 2025

Follow up to #80

Currently, if a client using a different protocol version (say, 2024-11-05) attempts to connect to a server supporting the latest, the server throws an error in the initialize method handler.

This behavior isn't particularly helpful, so this PR removes it.

There may be an argument for making this part of "strict" mode behavior, but we can revisit that in a follow-up.

@mattt mattt merged commit 800131f into main May 6, 2025
6 checks passed
@mattt mattt deleted the mattt/no-throw-on-protocol-mismatch branch May 6, 2025 18:53
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