2.3 Real-Time Services

Goal: Enable seamless live communication, trading collaboration, and instant market updates.

SUM+1 leverages real-time capabilities to foster continuous collaboration among traders, enable immediate access to market data, and drive dynamic user experiences. These features include live chat (text, voice, video), instant trade notifications, and real-time coin price updates. By orchestrating these functionalities with Socket.io and WebRTC, SUM+1 aims to replicate the immediacy found in high-performance trading platforms—yet with the community-driven aspects of social media.

1. Socket.io

• Chat & Collaboration:

• Coin-specific channels (e.g., “$DOGE channel”), private groups, direct messaging.

• Emitted events for new messages, user presence, channel notifications.

• Trading Updates:

• Stream real-time price data and match it to user channels.

• Quick broadcasting of trade signals or copy-trade alerts.

• Performance:

• Shard or scale Socket.io servers behind a Redis adapter if needed for massive concurrency.

2. WebRTC (Voice/Video)

• Signaling:

• Utilize Socket.io to negotiate peer connections.

• TURN/STUN Servers:

• Ensure connectivity behind NAT/firewalls.

• Group Calls:

• Media servers (e.g., Janus, Jitsi) may be needed for large group calls or advanced features (recording, screen sharing).

3. Presence Tracking

• Store presence info (online/offline, channel membership) in Redis for quick lookups.

• Update statuses in real-time when a user joins/leaves.

Last updated