The RCWeb Files Pro App (app/files-pro) is the enhanced, professional-grade version of the standard Files application within the RCWeb ecosystem. It builds upon the Symmetric Pattern to provide real-time, peer-to-peer file sharing while introducing powerful monitoring, analytics, and media preview capabilities.


The Pro version augments the foundational comms.js transport logic with sophisticated polling, rate sampling, and rendering subsystems within script.js.
broadcastPing() and receiveHelloReply() on a dedicated POLL_INTERVAL_MS loop to discover and map connectedPeers. It assigns a distinct UI color to each discovered client and graphs their round-trip latency (latencyLines[clientId]) using the external SmoothieChart library.rc.sendFileChunk(fileId, start, url). This initiates sendChunk(), which issues an HTTP PUT request and precisely records the metrics into an uploadHistory ledger. Completed requests update the global bytesUploaded counter to fuel the sampleUploadRate() line chart drawing cycle.contentType property of shared files. The rendering engine creates specialized interaction links (<a class="file-link media-link">). Clicking these fires previewMedia(...), which mounts a dynamic UIkit.lightboxPanel feeding the chunk-proxy URL to native video tags supporting instant playback and seeking.cleanupPeers() interval block. It gracefully evicts dormant connections that fail to respond within the CLIENT_TIMEOUT_MS window, guaranteeing that visual legends and analytical graphs accurately reflect only the live room participants.