puppeteer/new-docs/puppeteer.protocol.target.receivedmessagefromtargetevent.md
2020-07-13 14:01:35 +01:00

23 lines
1.1 KiB
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [Target](./puppeteer.protocol.target.md) &gt; [ReceivedMessageFromTargetEvent](./puppeteer.protocol.target.receivedmessagefromtargetevent.md)
## Protocol.Target.ReceivedMessageFromTargetEvent interface
Notifies about a new protocol message received from the session (as reported in `attachedToTarget` event).
<b>Signature:</b>
```typescript
export interface ReceivedMessageFromTargetEvent
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [message](./puppeteer.protocol.target.receivedmessagefromtargetevent.message.md) | string | |
| [sessionId](./puppeteer.protocol.target.receivedmessagefromtargetevent.sessionid.md) | [SessionID](./puppeteer.protocol.target.sessionid.md) | Identifier of a session which sends a message. |
| [targetId](./puppeteer.protocol.target.receivedmessagefromtargetevent.targetid.md) | [TargetID](./puppeteer.protocol.target.targetid.md) | Deprecated. |