Peer-to-Peer File Streaming Using Web Sockets Protocol
E. Geetha Rani, Roshan Jose S, Joel Thomas Chacko, Joshua Paul C, Jeanette Krizelda K · 2023
This work studies a peer-to-peer file streaming system with the following characteristics. The file streaming capacity is dynamic and depends on the storage capacity of the individual peers' devices. The large file is split into multiple chunks to stream it across peers. These chunks are not stored on the cloud or any intermediate channel, eliminating the need for a cloud storage bucket. To achieve this real-time streaming among peers, the Secure WebSocket (WSS) protocol is used, which has a minimal buffering delay. Depending on the internet bandwidth of the sender, the chunk size is dynamically modified to achieve a faster streaming rate. Before the chunks are received, the system allocates the required storage space for the incoming file stream. As these chunks arrive, they are written directly to the native storage of the device. Each room's name is unique. The creator of the room shares the name with his peers to start a streaming session. From this point, any peer in the room can act as a sender or a receiver.