wSocket Portal/Message History
Data Persistence

Message History

Never miss a message. Replay past events, catch up after disconnection, and query historical data with powerful time-based filters.

Data Persistence

Message History

Message Replay

Replay any message from any point in time. Perfect for playback of events, audit trails, and catching up after temporary disconnections.

Paginated Queries

Browse through large message histories efficiently with cursor-based pagination. Fetch 10 or 10,000 messages with consistent performance.

Time-based Filters

Query messages by timestamp ranges, retrieve the last N messages, or fetch everything since a specific point in time.

History Architecture

  • Messages are persisted to MongoDB immediately upon publish.

  • Indexed by channel, timestamp, and message ID for fast retrieval.

  • Configurable retention policies per plan (7 to 365 days).

< 5ms
message delivery latency
99.999%
message survivability
50M+
connections opened monthly
7+
of 100% uptime

Enable message history for your channels

Join developers building the next generation of realtime applications.