Skip to content

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.

3 participants