Skip to main content

Module client

Module client 

Source
Expand description

The NATS connection handle (NatsClient) and its shared alias (SharedNatsClient).

Re-exports§

pub use request::NatsRequestBody;

Modules§

maintenance 🔒
Contains logic related to the maintenance mode.
request 🔒
Helps to send data via a request and reply pattern to other services.
room
Handles room related NATS operations
sync 🔒
Notifier mechanism to signal something has changed in the system. Mainly used to notify listeners that changes to a room occurred.

Structs§

NatsClient
Live handle to a NATS client including a JetStream connection.

Functions§

event_subjects
The full set of subjects an event occupies: its Event::SUBJECT plus any Event::COMPATIBLE_SUBJECTS.
stream_name
Derives a JetStream stream name from a (possibly wildcard) subject pattern.

Type Aliases§

SharedNatsClient
A connection to NATS and JetStream.