This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-21
Channels
- # announcements (26)
- # babashka (115)
- # babashka-sci-dev (5)
- # beginners (48)
- # calva (69)
- # cider (4)
- # clj-commons (11)
- # clj-kondo (1)
- # cljfx (29)
- # clojure (109)
- # clojure-art (1)
- # clojure-czech (1)
- # clojure-europe (33)
- # clojure-nl (1)
- # clojure-nlp (3)
- # clojure-norway (7)
- # clojure-uk (1)
- # clojurescript (63)
- # clr (1)
- # data-science (41)
- # datalevin (1)
- # datomic (11)
- # emacs (58)
- # etaoin (11)
- # figwheel-main (1)
- # fulcro (5)
- # google-cloud (12)
- # helix (2)
- # honeysql (21)
- # hyperfiddle (22)
- # joyride (53)
- # malli (52)
- # off-topic (27)
- # portal (4)
- # re-frame (19)
- # releases (3)
- # ring-swagger (5)
- # xtdb (30)
heya. I’m stuck while playing with bb and portal. everything looks cool but it doesn’t work — see https://gist.github.com/srenatus/6736c5d43fe8f8321ac7107216edd92e for bb.edn, the log of the terminal controlling portal; and the script I’d like to have send a thing to portal via the remote API, from another terminal. The script produces no output (no errors), but the portal window also stays empty. I feel like I’m missing something basic here 😳
Ohh, the issue here is that tap> is processed asynchronously via a queue. So the process dies before the tap handler even gets called. For this use case, you can also call the submit fn directly instead 👌
#!/usr/bin/env bb
(require '[portal.client.jvm :as p])
(def submit (partial p/submit {:port 5678}))
(submit "up and running")
it works! thanks a lot