baasix_realtime_enable
Enable realtime updates for a database collection to broadcast insert, update, and delete changes via WebSocket for live data synchronization.
Instructions
Enable realtime for a collection. Changes will be broadcast via WebSocket when data is modified.
The realtime config is stored in the schema definition and can include specific actions to broadcast.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | No | Actions to broadcast (default: ["insert", "update", "delete"]) | |
| collection | Yes | Collection name to enable realtime for | |
| replicaIdentityFull | No | Set REPLICA IDENTITY FULL for old values on UPDATE/DELETE (default: false) |