Automatically create NATS JetStream stream if it doesn't exist

Fixkamo-shared-library
Shipped
November 4, 2025 at 6:55 PM UTC
Author
snadjafinia
Commit
226de84

- Added createStreamIfNotExists method to check and create the CHAT_MESSAGES stream - Stream is created with subjects from configuration (chat.>) - Fixes 'No matching streams for subject' error when publishing messages - Stream creation is idempotent - checks if stream exists before creating

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing