host.msg.wait
Long-poll for a new message until one past cursor arrives or timeout_s elapses (max 25s), returning the same shape as host.msg.inbox either way -- for a client with no polling loop of its own. On timeout, messages is empty and next_cursor is unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Opaque; omit to wait for the next message from now. | |
| timeout_s | No | Max seconds to wait, capped at 25; default 20. | |
| tenant_key | No | The key `signup` returned. Required only when this connection carries no Authorization: Bearer header -- when both are present, the header wins. | |
| unread_only | No | Filter to messages not yet acked. |