chore: recommend sse by default (#758)

This commit is contained in:
Yury Semikhatsky
2025-07-25 09:51:01 -07:00
committed by GitHub
parent e934d5e23e
commit 26a2a6fc83
4 changed files with 16 additions and 16 deletions

View File

@@ -234,3 +234,12 @@ test('sse transport browser lifecycle (persistent, multiclient)', async ({ serve
await client1.close();
await client2.close();
});
test('sse transport (default)', async ({ serverEndpoint }) => {
const { url } = await serverEndpoint();
const transport = new SSEClientTransport(url);
const client = new Client({ name: 'test', version: '1.0.0' });
await client.connect(transport);
await client.ping();
await client.close();
});