Skip to main content

echo

Function echo 

Source
pub fn echo(
    out: &mut dyn Write,
    endpoint: &Endpoint,
    args: &TopicStreamArgs,
) -> Result<StreamReport, CliError>
Expand description

astrs topic echo: prints every message on a port as it arrives.

Runs until the coordinator closes the connection (the cluster went down), TopicStreamArgs::count frames have been printed, or the process is interrupted — at which point the subscription is closed explicitly (in the latter two cases) — the same shape as astrs logs -f — before this returns.

§Errors