The PureBasic WebGadget framework includes predefined structures for managing WebSocket data and page information. These structures simplify data handling when interacting with the Chrome DevTools Protocol (CDP) via WebSockets.
Represents detailed information about a web page. Typically used with Cr_WebSocket_PageData to extract page metadata from the network connection.
Structure PAGE_DATA
id.s
type.s
title.s
url.s
description.s
faviconUrl.s
devtoolsFrontendUrl.s
webSocketDebuggerUrl.s
EndStructure
Represents target information within the browser, such as tabs, frames, or other attached contexts. Useful for managing multiple targets.
Structure TARGET_DATA
targetId.s
type.s
title.s
url.s
attached.l
openerId.s
canAccessOpener.l
openerFrameId.s
browserContextId.s
EndStructure