Wraps an established connection and its KV manager.
Open NATS connection.
KV manager created from connection.
PrivatebucketsBuckets opened by NatsService.bucket, by name.
Open WebSocket connection to central NATS.
Key-Value manager bound to the active connection.
Opens a KV bucket once per connection and returns the same handle afterwards.
Opening only binds a handle to the bucket's stream; the helpers below used to do it on every call. A failed open is not kept, so the next call tries again.
KV bucket name, e.g. avenabox.
The bucket handle.
Open connection to central NATS plus the KV manager bound to it.
Returned by connect and passed to the KV helpers and the exporter client.