Revert "chore: recommend sse by default" (#765)
Reverts microsoft/playwright-mcp#758 Sounds like the stock streamable implementation is to spec, so we can keep it.
This commit is contained in:
@@ -248,3 +248,12 @@ test('http transport browser lifecycle (persistent, multiclient)', async ({ serv
|
||||
await client1.close();
|
||||
await client2.close();
|
||||
});
|
||||
|
||||
test('http transport (default)', async ({ serverEndpoint }) => {
|
||||
const { url } = await serverEndpoint();
|
||||
const transport = new StreamableHTTPClientTransport(url);
|
||||
const client = new Client({ name: 'test', version: '1.0.0' });
|
||||
await client.connect(transport);
|
||||
await client.ping();
|
||||
expect(transport.sessionId, 'has session support').toBeDefined();
|
||||
});
|
||||
|
||||
@@ -234,12 +234,3 @@ 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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user