on master help sign in
Merge pull request #834 from liam-fitzgerald/gall-ref-list-paths
1d0f878David Kerschner
reference/vane-apis/gall.md+10−4
@@ -84,7 +84,7 @@ exposes a scry namespace to inspect everyone's number.
84 :: Increment local counter and send new counter to subscribers
84 :: Increment local counter and send new counter to subscribers
85 ::
85 ::
86 [%increment ~]
86 [%increment ~]
87− :- [%give %fact `/local %atom !>(+(local))]~
87+ :- [%give %fact ~[/local] %atom !>(+(local))]~
88 this(local +(local))
88 this(local +(local))
89 ::
89 ::
90 :: Send remote %increment poke
90 :: Send remote %increment poke
@@ -412,7 +412,7 @@ List of cards and new agent.
412 :: Increment local counter and send new counter to subscribers
412 :: Increment local counter and send new counter to subscribers
413 ::
413 ::
414 [%increment ~]
414 [%increment ~]
415− :- [%give %fact `/local %atom !>(+(local))]~
415+ :- [%give %fact ~[/local] %atom !>(+(local))]~
416 this(local +(local))
416 this(local +(local))
417 ::
417 ::
418 :: Send remote %increment poke
418 :: Send remote %increment poke
@@ -819,10 +819,10 @@ subscription content for all subscribers on a given path.
819#### Structure
819#### Structure
820
820
821```hoon
821```hoon
822−[%fact (unit path) =cage]
822+[%fact (list path) =cage]
823```
823```
824
824
825−`(unit path)` is the path of the subscription being updated. If no path is
825+`(list path)` is a list of the paths to send the update on. If no path is
826 given, then the update is only given to the program that instigated the
826 given, then the update is only given to the program that instigated the
827 request. Typical use of this mode is in `+on-watch` to give an initial update
827 request. Typical use of this mode is in `+on-watch` to give an initial update
828 to a new subscriber to get them up to date.
828 to a new subscriber to get them up to date.
@@ -836,6 +836,12 @@ subscription content for all subscribers on a given path.
836::
836::
837:: Gives current local state to new subscribers.
837:: Gives current local state to new subscribers.
838[%give %fact ~ %atom !>(local.sta)]
838[%give %fact ~ %atom !>(local.sta)]
839+
840+
841+:: From ++on-poke in reference agent
842+::
843+:: Gives incremented local state to any subscribers on /local
844+[%give %fact ~[/local] %atom !>(+(local))]
839```
845```
840
846
841### `%kick`
847### `%kick`