u/Boring-Tea2851
I built a full PWA Chat App. Here is how I handled asynchronous chunked media transfers and WebSocket reconnections in React (Open Source)
Hey React devs,
I've been working on an open-source web chat app called Pulse Chat. My goal was to make a React web app feel indistinguishable from a premium native iOS app.
The hardest frontend challenge I faced was building the custom TransferManager. When users send media (images/videos), I couldn't just block the UI waiting for the server. I had to build a custom transfer state machine that handles pending, uploading, downloading, and paused states completely asynchronously.
It hooks directly into the browser's Service Worker (vite-plugin-pwa) to dynamically cache media blobs. If the user drops their connection, the PWA handles the offline state gracefully, and my custom WebSocket client immediately re-syncs the missing history chunks the moment they reconnect.
I also completely bypassed React's useState rendering cycle for the Lightbox pinch-to-zoom. I bound the gesture data directly to a ref to update the DOM imperatively, which easily hits a buttery smooth 60FPS on old mobile devices.
🌐 Live: https://pulsechat.tech 💻 Repo: https://github.com/2harshpandey/pulse-chat
Would absolutely love feedback on my React component architecture and how I'm handling the media caching under the hood!
samay literally copy pasted the whole instruction given by ai+ team in his story😭😭
Need a Next IAS senior's help for my sister (Foundation Prep)
Hi everyone,
My sister is planning to join the Next IAS 1-year GS Pre-cum-Mains foundation offline in Delhi. She has already covered her basic NCERTs from 6th to 12th on her own and is ready to start full-time.
I was told that outgoing students get a student discount coupon that helps bring down the admission fee (usually by 10k to 20k). If any senior here has recently finished their batch and has a spare coupon they aren't planning to use, could you please DM me?
It would be a massive help in bringing the total fee down for her.
Thanks in advance, and all the best with your prep!