02 / Real-Time Communication · WebRTC & Socket.IO

Talkyy

Connection Resolution — Real-Time Video & Messaging

Role

Full-Stack Real-Time & Security Engineering

System Direction

Connected presence · Encrypted room signaling

Talkyy explores resilient multi-client messaging, group room collaboration, and WebRTC voice/video signaling paired with practical client-side cryptographic integrity and two-factor account protection.

Talkyy desktop group conversation workspace with room roster and live thread
Talkyy mobile active chat conversation with delivery indicators

Interactive Exhibition

Product Surfaces & Interface States

1/7
talkyy.live / rooms
Talkyy desktop group conversation workspace with room roster and live thread
Talkyy mobile active chat conversation with delivery indicators

01 · Connected Real-Time Surfaces

Desktop group room and mobile encrypted conversation paired as one synchronized Socket.IO presence.

Capabilities

Core Features

  1. 01

    Synchronized direct and group messaging over Socket.IO rooms with typing indicators and per-participant read receipts.

  2. 02

    Client-side AES-256 encryption with random 16-byte IV and HMAC-SHA256 integrity verification (ECDH group keys / worker-offloaded crypto).

  3. 03

    WebRTC group video and voice calling interfaces with explicit room signaling and relay fallback support.

  4. 04

    Interactive room polls, inline voice notes, message reactions, edits/deletes, and Cloudinary media/file sharing.

  5. 05

    TOTP two-factor authentication and account security management.

Infrastructure

Technology Stack

MongoDBExpressReactNode.jsSocket.IOWebRTCCloudinary

System Design

System Architecture Overview

React clients encrypt message payloads locally before emitting Socket.IO room events through Express/Node.js, while WebRTC negotiates peer/relay media tracks and Cloudinary handles attachment pipelines.

Client & Crypto

React + Web Crypto / Worker

Performs client-side AES-256 + HMAC-SHA256 payload encryption and renders live room state.

Signaling Server

Node.js + Express + Socket.IO

Coordinates room membership, typing presence, read checkpoints, polls, and WebRTC ICE/SDP offers.

Media & Calls

WebRTC + Cloudinary

Handles peer/relay audio-video call rooms and image/file/voice-note attachment storage.

Persistence & Auth

MongoDB + TOTP 2FA

Stores encrypted message envelopes, room metadata, and two-factor security credentials.

Engineering Tradeoffs

Technical Decisions

AES-256 with Random 16-Byte IV + HMAC-SHA256

Combining CBC encryption with explicit HMAC-SHA256 integrity tags ensures tamper detection while offloading heavy key operations to workers.

Transient Typing Signals vs. Persisted Checkpoints

Keeping typing indicators purely ephemeral in Socket.IO avoids unnecessary database writes while persisting read receipts and polls.

Problem Solving

Challenges & Solutions

Challenge

Multi-client state divergence when users switch between direct threads, group rooms, and active calls.

Resolution

Structured Socket.IO room lifecycle handlers (setup → join → room events) with explicit call-state tracking.

Challenge

Direct peer traversal failures across restrictive NAT environments during group calls.

Resolution

Built WebRTC signaling negotiation with relay fallback awareness and clear camera-off / voice-only room states.

Evidence

Verified Implementation Results

  1. 01

    Source-verified signaling, ECDH group keys, AES-256 + HMAC-SHA256, and TOTP 2FA in commit b01d17b3.

  2. 02

    Verified dual-client real-time message synchronization, group polls, voice messages, and camera-off/voice calling UI.