Cloud Browser API
Stream session updates
SSE events: snapshot, session, pages, action, event and end. The data field is JSON. A ping comment is sent every 15 seconds; end closes the stream. Historical replay is not available.
GET
/browser/v1/sessions/{sessionId}/stream● SupportedRequest parameters
sessionIdstring必填浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
Returns
200
Errors contain statusCode, error and message; the native API adds code. The request ID is in X-Request-Id. Errors
Response
HTTP 200
持续推送会话状态。
text/event-stream — chunk / event object
| Name | Type | Description |
|---|---|---|
| $ | string | event: <事件名>\ndata: <JSON>\n\n |