Crate tenvis_pulse_core

Crate tenvis_pulse_core 

Source
Expand description

§pulse-core

Core types, traits, and message routing for the Pulse realtime engine.

This crate provides the fundamental building blocks:

  • Channel - Room/topic abstraction for grouping connections
  • Router - High-performance pub/sub message routing
  • Presence - Track and broadcast user presence
  • Message - Internal message types

§Architecture

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│  Connection │────▶│   Router    │────▶│  Channel    │
└─────────────┘     └─────────────┘     └─────────────┘
                           │
                           ▼
                    ┌─────────────┐
                    │  Presence   │
                    └─────────────┘

Re-exports§

pub use channel::Channel;
pub use channel::ChannelId;
pub use message::Message;
pub use presence::Presence;
pub use presence::PresenceState;
pub use router::Router;
pub use router::RouterConfig;
pub use router::RouterError;

Modules§

channel
Channel abstraction for Pulse.
message
Internal message types for Pulse.
presence
Presence tracking for Pulse.
router
High-performance message router for Pulse.