PureBasic WebGadget — Structures

WebSocket Structures

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.

PAGE_DATA

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

TARGET_DATA

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