Basic usage
Mount the DMs list and listen for channel selection events to navigate users into a conversation.- React
- Vanilla JS
- Swift
Company scoping
Filter the DMs list to only show conversations belonging to a specific company by passing acompanyId. To programmatically create DMs, use the Create DM Channel endpoint — make sure to pass the same companyId so the DM appears in the scoped list.
- React
- Vanilla JS
- Swift
Event handling
Listen for channel selection to open the corresponding chat view.- React
- Vanilla JS
- Swift
| Event | Detail | Description |
|---|---|---|
channelSelected | { id: string } | Emitted when the user clicks a channel |

