Update client side wrapper example
This commit is contained in:
parent
9d4b853e8f
commit
815babf5c0
1 changed files with 2 additions and 3 deletions
|
|
@ -335,11 +335,10 @@ as client side code. An example from the
|
||||||
"pod.babashka.filewatcher"
|
"pod.babashka.filewatcher"
|
||||||
'pod.babashka.filewatcher/watch*
|
'pod.babashka.filewatcher/watch*
|
||||||
[path opts]
|
[path opts]
|
||||||
{:handlers {:success cb
|
{:handlers {:success (fn [event] (cb (update event :type keyword)))
|
||||||
:error (fn [{:keys [:ex-message :ex-data]}]
|
:error (fn [{:keys [:ex-message :ex-data]}]
|
||||||
(binding [*out* *err*]
|
(binding [*out* *err*]
|
||||||
(println "ERROR:" ex-message)))
|
(println "ERROR:" ex-message)))}})
|
||||||
:done (fn [])}})
|
|
||||||
nil))
|
nil))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue