docs: fix programmatic usage (#1047)

This commit is contained in:
Tejas Kumar
2025-09-17 16:22:12 +02:00
committed by GitHub
parent 0bfcb05422
commit c49dedb83f

View File

@@ -431,7 +431,7 @@ http.createServer(async (req, res) => {
// Creates a headless Playwright MCP server with SSE transport // Creates a headless Playwright MCP server with SSE transport
const connection = await createConnection({ browser: { launchOptions: { headless: true } } }); const connection = await createConnection({ browser: { launchOptions: { headless: true } } });
const transport = new SSEServerTransport('/messages', res); const transport = new SSEServerTransport('/messages', res);
await connection.sever.connect(transport); await connection.connect(transport);
// ... // ...
}); });