Skip to content

StreamableHttp transport - backwards compatibility examples #347

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 6 commits into from
Apr 17, 2025

Conversation

ihrpr
Copy link
Contributor

@ihrpr ihrpr commented Apr 16, 2025

Adding examples for backwards compatibility of servers and clients according to the spec.

Backwards compatible client can run all three versions of servers

client

npx tsx src/examples/client/streamableHttpWithSseFallbackClient.ts

servers

SSE:

npx tsx src/examples/server/simpleSseServer.ts

StreamableHttp:

npx tsx src/examples/server/simpleStreamableHttp.ts

Backwards Compatible

npx tsx src/examples/server/sseAndStreamableHttpCompatibleServer.ts

Note

stacked on top of #345

Copy link
Member

@jspahrsummers jspahrsummers left a comment

Choose a reason for hiding this comment

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

iloveit

Base automatically changed from ihrpr/session_management to main April 17, 2025 16:36
@ihrpr ihrpr merged commit 12d8ac9 into main Apr 17, 2025
4 checks passed
@ihrpr ihrpr deleted the ihrpr/backwards_compatibility branch April 17, 2025 16:45
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