Subscribes to changes on a table and returns an AsyncStream<LiveEvent<T>> of events.
Important
Arguments
| Arguments | Description |
|---|---|
query
|
A live query built with SurrealDSL.live(_:) or the #live macro.
|
Example usage
See Live queries for a full walkthrough, and kill to stop a subscription.