> For the complete documentation index, see [llms.txt](https://docs.iotmp.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.iotmp.io/iotmp/messages/streams/stream-event.md).

# Stream Data

## Message

### Header

| Field            | Value                                  | Description              |
| ---------------- | -------------------------------------- | ------------------------ |
| **Message Type** | 0x0A                                   | Stream Data              |
| **Message Size** | [varint](/iotmp/definitions.md#varint) | Remaining Message Length |

### Body

| Field          | Identifier | Type                                   | Mandatory | Value                                                                                                                     |
| -------------- | ---------- | -------------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------- |
| **Stream Id**  | 0x01       | [varint](/iotmp/definitions.md#varint) | Yes       | Stream identifier.                                                                                                        |
| **Parameters** | 0x02       | [any](/iotmp/definitions.md#any)       | No        | User-defined parameters associated to the information that can be used for signaling the payload, provide a context, etc. |
| **Payload**    | 0x03       | [any](/iotmp/definitions.md#any)       | No        | Current stream payload.                                                                                                   |

## Thinger.io

In thinger.io, clients streaming resources establish the following parameters to help the server identifying the source of information while sending data.

### Parameters

| Name                | Value | Description                                               |
| ------------------- | ----- | --------------------------------------------------------- |
| **Resource Input**  | 0x01  | Stream data represents the input of the stream resource.  |
| **Resource Output** | 0x02  | Stream data represents the output of the stream resource. |
