Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Zenohex publisher

livebooks/zenoh/zenohex_publisher.livemd

Zenohex publisher

Mix.install([
  {:zenohex, "~> 0.3"},
  {:kino, "~> 0.14"}
])

Publish

{:ok, session} = Zenohex.open()
{:ok, publisher} =
  Zenohex.Session.declare_publisher(session, "key/expression")
input = Kino.Input.textarea("MESSAGE")
message = Kino.Input.read(input)

Zenohex.Publisher.put(publisher, message)