BaseMessage
interfaceBase structure shared by all DevTools protocol messages.
Every message sent over the DevTools WebSocket extends this interface.
The
type field acts as a discriminant for the DevtoolsMessage
union, enabling exhaustive switch routing on the receiving side.Properties
| Name | Type | Description |
|---|---|---|
sourceId | string | UUID of the sender (store wrapper ID or extension ID). |
sourceRole | DevtoolsRole | Role of the sender. |
timestamp | string | ISO 8601 timestamp of when the message was created. |
type | string | Discriminant field identifying the message type. |