Skip to main content

Module receive

Module receive 

Source
Expand description

Receive omni casts from a relay as an NDJSON stream.

omni listen and omni get are lightweight local daemon subscribers. The always-on omni daemon owns the remote relay registration and OS injection, then mirrors each received InjectionCommand to every subscriber on its existing local port. Subscribers do not inject keys or open another listening socket, which makes the stream suitable for shell pipelines and Pi extensions.

Structs§

ReceiveOptions
Options for receive_from_daemon.

Enums§

SessionEnd
Why one connected receive session ended.

Functions§

receive_events_from_daemon
Event-only subscriber. A stream discontinuity emits a local omni_stream_reset cancel event before reconnecting, so held-state consumers can reset safely.
receive_events_session
Receive only non-injecting application events, never the command tap.
receive_from_daemon
Connect to a daemon, subscribe to its command tap, and stream to output.
receive_session
Subscribe to a local daemon and copy received commands to output as NDJSON.