chrome-devtools-kotlin / org.hildan.chrome.devtools.protocol / ChromeDPTarget / attach

attach

suspend fun attach(webSocketClient: WebSocketClient = DEFAULT_WEBSOCKET_CLIENT): ChromePageSession
Deprecated: this method provides no way of closing the created websocket connection, prefer using ChromeDPClient.webSocket and using the richer websocket API to interact with targets (ChromeBrowserSession.target)

Attaches to this target via a new web socket connection to this target's debugger URL. This establishes a new protocol session to this target.