I wrestled AppSync WebSockets for 4 hours so you don’t have to (React + GraphQL Subscriptions)
dev.to·5h·
Discuss: DEV
Flag this post

You know that moment when “it should be simple” puts on a clown wig and honks a tiny horn? That was me, trying to wire a React client to AWS AppSync for real-time GraphQL updates. Four hours, three coffees, and one thousand console.logs later… it works. Here’s the story, the fixes, and enough code breadcrumbs to save Future You from my timeline.

Spoiler for the curious: I tried Cursor and a couple other AI copilots mid-chaos—useful for rubber-ducking, but they didn’t splice the wires for me. I also started with subscription-transport-ws (RIP, old friend), then eventually ditched libs and went full native WebSocket. That’s when the fog lifted.

The setup

Goal: React client subscribes to on...

Similar Posts

Loading similar posts...