mirror of
https://github.com/urbit/developers.urbit.org.git
synced 2024-10-26 15:49:50 +03:00
gall: clarify empty fact path only works in on-watch
This commit is contained in:
parent
d9496f1f65
commit
5cd538040b
@ -816,13 +816,14 @@ subscription content for all subscribers on a given path.
|
||||
#### Structure
|
||||
|
||||
```hoon
|
||||
[%fact (list path) =cage]
|
||||
[%fact paths=(list path) =cage]
|
||||
```
|
||||
|
||||
`(list path)` is a list of the paths to send the update on. If no path is
|
||||
given, then the update is only given to the program that instigated the
|
||||
request. Typical use of this mode is in `+on-watch` to give an initial update
|
||||
to a new subscriber to get them up to date.
|
||||
`paths` is a list of the subscription paths to send the update on. In
|
||||
`+on-watch` alone, if no path is given, then the update is given
|
||||
exclusively to the source of the `%watch` request. This is useful for
|
||||
giving initial state to new subscribers. In other contexts, one or more
|
||||
subscription paths should be provided.
|
||||
|
||||
`cage` is a cage of the subscription update.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user