|
8111 | 8111 | "id": "TargetID", |
8112 | 8112 | "type": "string" |
8113 | 8113 | }, |
| 8114 | + { |
| 8115 | + "id": "SessionID", |
| 8116 | + "type": "string", |
| 8117 | + "description": "Unique identifier of attached debugging session." |
| 8118 | + }, |
8114 | 8119 | { |
8115 | 8120 | "id": "BrowserContextID", |
8116 | 8121 | "type": "string" |
|
8211 | 8216 | }, |
8212 | 8217 | { |
8213 | 8218 | "name": "sendMessageToTarget", |
8214 | | - "description": "Sends protocol message to the target with given id.", |
| 8219 | + "description": "Sends protocol message over session with given id.", |
8215 | 8220 | "parameters": [ |
8216 | | - { |
8217 | | - "name": "targetId", |
8218 | | - "$ref": "TargetID" |
8219 | | - }, |
8220 | 8221 | { |
8221 | 8222 | "name": "message", |
8222 | 8223 | "type": "string" |
| 8224 | + }, |
| 8225 | + { |
| 8226 | + "name": "sessionId", |
| 8227 | + "$ref": "SessionID", |
| 8228 | + "optional": true, |
| 8229 | + "description": "Identifier of the session." |
| 8230 | + }, |
| 8231 | + { |
| 8232 | + "name": "targetId", |
| 8233 | + "$ref": "TargetID", |
| 8234 | + "optional": true, |
| 8235 | + "deprecated": true, |
| 8236 | + "description": "Deprecated." |
8223 | 8237 | } |
8224 | 8238 | ] |
8225 | 8239 | }, |
|
8276 | 8290 | ], |
8277 | 8291 | "returns": [ |
8278 | 8292 | { |
8279 | | - "name": "success", |
8280 | | - "type": "boolean", |
8281 | | - "description": "Whether attach succeeded." |
| 8293 | + "name": "sessionId", |
| 8294 | + "$ref": "SessionID", |
| 8295 | + "description": "Id assigned to the session." |
8282 | 8296 | } |
8283 | 8297 | ] |
8284 | 8298 | }, |
8285 | 8299 | { |
8286 | 8300 | "name": "detachFromTarget", |
8287 | | - "description": "Detaches from the target with given id.", |
| 8301 | + "description": "Detaches session with given id.", |
8288 | 8302 | "parameters": [ |
| 8303 | + { |
| 8304 | + "name": "sessionId", |
| 8305 | + "$ref": "SessionID", |
| 8306 | + "optional": true, |
| 8307 | + "description": "Session to detach." |
| 8308 | + }, |
8289 | 8309 | { |
8290 | 8310 | "name": "targetId", |
8291 | | - "$ref": "TargetID" |
| 8311 | + "$ref": "TargetID", |
| 8312 | + "optional": true, |
| 8313 | + "deprecated": true, |
| 8314 | + "description": "Deprecated." |
8292 | 8315 | } |
8293 | 8316 | ] |
8294 | 8317 | }, |
|
8405 | 8428 | "name": "attachedToTarget", |
8406 | 8429 | "description": "Issued when attached to target because of auto-attach or <code>attachToTarget</code> command.", |
8407 | 8430 | "parameters": [ |
| 8431 | + { |
| 8432 | + "name": "sessionId", |
| 8433 | + "$ref": "SessionID", |
| 8434 | + "description": "Identifier assigned to the session used to send/receive messages." |
| 8435 | + }, |
8408 | 8436 | { |
8409 | 8437 | "name": "targetInfo", |
8410 | 8438 | "$ref": "TargetInfo" |
|
8417 | 8445 | }, |
8418 | 8446 | { |
8419 | 8447 | "name": "detachedFromTarget", |
8420 | | - "description": "Issued when detached from target for any reason (including <code>detachFromTarget</code> command).", |
| 8448 | + "description": "Issued when detached from target for any reason (including <code>detachFromTarget</code> command). Can be issued multiple times per target if multiple sessions have been attached to it.", |
8421 | 8449 | "parameters": [ |
| 8450 | + { |
| 8451 | + "name": "sessionId", |
| 8452 | + "$ref": "SessionID", |
| 8453 | + "description": "Detached session identifier." |
| 8454 | + }, |
8422 | 8455 | { |
8423 | 8456 | "name": "targetId", |
8424 | | - "$ref": "TargetID" |
| 8457 | + "$ref": "TargetID", |
| 8458 | + "optional": true, |
| 8459 | + "deprecated": true, |
| 8460 | + "description": "Deprecated." |
8425 | 8461 | } |
8426 | 8462 | ] |
8427 | 8463 | }, |
8428 | 8464 | { |
8429 | 8465 | "name": "receivedMessageFromTarget", |
8430 | | - "description": "Notifies about new protocol message from attached target.", |
| 8466 | + "description": "Notifies about a new protocol message received from the session (as reported in <code>attachedToTarget</code> event).", |
8431 | 8467 | "parameters": [ |
8432 | 8468 | { |
8433 | | - "name": "targetId", |
8434 | | - "$ref": "TargetID" |
| 8469 | + "name": "sessionId", |
| 8470 | + "$ref": "SessionID", |
| 8471 | + "description": "Identifier of a session which sends a message." |
8435 | 8472 | }, |
8436 | 8473 | { |
8437 | 8474 | "name": "message", |
8438 | 8475 | "type": "string" |
| 8476 | + }, |
| 8477 | + { |
| 8478 | + "name": "targetId", |
| 8479 | + "$ref": "TargetID", |
| 8480 | + "optional": true, |
| 8481 | + "deprecated": true, |
| 8482 | + "description": "Deprecated." |
8439 | 8483 | } |
8440 | 8484 | ] |
8441 | 8485 | } |
|
0 commit comments