Jido.Chat.Signal.Transport.CliClient (Jido Chat Signal v1.0.0)

Copy Markdown View Source

One-shot signal-cli transport for local live tests and simple deployments.

Summary

Functions

Receives pending Signal envelopes using signal-cli receive.

Functions

receive_messages(opts \\ [])

@spec receive_messages(keyword()) :: {:ok, [map()]} | {:error, term()}

Receives pending Signal envelopes using signal-cli receive.

signal-cli returns JSON when the global -o json flag is supplied. Different versions may emit either a JSON list or line-delimited JSON objects, so parsing accepts both formats.