mirror of
				https://github.com/microsoft/playwright-mcp.git
				synced 2025-10-12 00:25:14 +03:00 
			
		
		
		
	fix: createConnection() via public API (#384)
Fixes https://github.com/microsoft/playwright-mcp/issues/382
This commit is contained in:
		| @@ -231,7 +231,7 @@ http.createServer(async (req, res) => { | ||||
|   // ... | ||||
|  | ||||
|   // Creates a headless Playwright MCP server with SSE transport | ||||
|   const connection = await createConnection({ headless: true }); | ||||
|   const connection = await createConnection({ browser: { launchOptions: { headless: true } } }); | ||||
|   const transport = new SSEServerTransport('/messages', res); | ||||
|   await connection.connect(transport); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Schmitt
					Max Schmitt