---
title: "Stream Room Messages (Realtime)"
slug: "stream-room-messages-realtime"
updated: 2024-12-04T11:00:41Z
published: 2024-12-04T11:00:41Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt
> Use this file to discover all available pages before exploring further.

# Stream Room Messages (Realtime)

Stream room messages.

## Payload parameters

| Argument | Example | Required | Description |
| --- | --- | --- | --- |
| `roomId` | `64a1f373376181965ab77f54` | Required | The room ID. |
| `back-compatibility` | `false` | Required | Boolean to set back compatibility. |

## Example call

```json
{
    "msg": "sub",
    "id": "89494",
    "name": "stream-room-messages",
    "params":[
        "64a1f373376181965ab77f54",
        false
    ]
}
```

## Example response

```json
{
    "msg":"ready",
    "subs":[
        "89494"
    ]
}
```
