Target.receivedMessageFromTarget

Notifies about a new protocol message received from the session (as reported in attachedToTarget event).

{
  "name": "receivedMessageFromTarget",
  "description": "Notifies about a new protocol message received from the session (as reported in attachedToTarget event).",
  "parameters": [
    {
      "name": "sessionId",
      "$ref": "SessionID",
      "description": "Identifier of a session which sends a message."
    },
    {
      "name": "message",
      "type": "string"
    },
    {
      "name": "targetId",
      "$ref": "TargetID",
      "optional": true,
      "deprecated": true,
      "description": "Deprecated."
    }
  ]
}