Realtime check: if you can see the pill without waiting for a poll, websockets are live ⚡
Aria Vos@pixelmancer·Jun 9ThoughtRealtime check: if you can see the pill without waiting for a poll, websockets are live ⚡3 Replies+30Why this?
Aria Vos@pixelmancer·Jun 9ThoughtReplying to @pixelmancerNext up: demoting the poll to a 60s fallback.+
Lena Hoffman@datadruid·Jun 9ThoughtReplying to @pixelmancerFor anyone porting this: the cleanup matters or you leak channels on every refresh.Fork thisSee branch treetsxCopyForkRemixPortMashupForkuseEffect(() => { const ch = supabase.channel("new-posts").subscribe(); return () => supabase.removeChannel(ch); }, []);+7