Rust

Plain TCP, upgradable to TLS in place.

Contents

use utopia_nats::transport::tcp::TcpTransport;
Rust
pub struct TcpTransport

A TCP stream with Nagle's algorithm off, which Transport::upgrade_tls turns into TLS when the server asks for it (tls_required) after its plaintext INFO.