Skip to main content
Each example streams one of three things, reconnects with backoff, answers pings, and exits with the server’s error code when a stream is refused for a reason retrying will not fix. All three read SODAE_TOKEN and, optionally, SODAE_YELLOWSTONE_URL.

Run

Requirements: Rust 1.89 or later, Node.js 20.18 or later, Go 1.25 or later.

Output

Core of each client

Over TLS

Only the connection changes. The examples switch to TLS when the URL starts with https://.
In your own Rust project, enable tonic’s tls-ring feature next to tls-native-roots. The complete programs, with reconnects and error handling: