Target.detachFromTargetDetaches session with given id.
| Name | Type | Description |
|---|---|---|
sessionId (optional) | SessionID | Session to detach. |
targetId (optional) | TargetID | Deprecated. |
{
"id": 1,
"method": "Target.detachFromTarget"
}
{
"id": 1,
"result": {}
}
const result = await send('Target.detachFromTarget');
console.log(result);