pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

increase watch party pull rate

Pas 8d7a61c5 0003ef1e

+6 -6
+4 -4
src/components/player/internals/Backend/WatchPartyReporter.tsx
··· 242 242 } 243 243 }; 244 244 245 - // Check every 3 seconds for episode changes 246 - const interval = setInterval(checkForEpisodeChange, 3000); 245 + // Check every 1.5 seconds for episode changes 246 + const interval = setInterval(checkForEpisodeChange, 1500); 247 247 248 248 // Initial check 249 249 checkForEpisodeChange(); ··· 289 289 // Check if state has changed meaningfully OR 290 290 // it's been at least 2 seconds since last report 291 291 const hasStateChanged = stateFingerprint !== lastReportedStateRef.current; 292 - const timeThresholdMet = now - lastReportTime.current >= 10000; // Less frequent updates (10s) 292 + const timeThresholdMet = now - lastReportTime.current >= 2000; // Update every 2 seconds 293 293 294 294 // Always update more frequently if we're the host to ensure guests stay in sync 295 - const shouldUpdateForHost = isHost && now - lastReportTime.current >= 1000; 295 + const shouldUpdateForHost = isHost && now - lastReportTime.current >= 500; // Host updates every 500ms 296 296 297 297 if (!hasStateChanged && !timeThresholdMet && !shouldUpdateForHost) return; 298 298
+2 -2
src/hooks/useWatchPartySync.ts
··· 298 298 // Initial fetch 299 299 refreshRoomData(); 300 300 301 - // Set up interval - refresh every 2 seconds 302 - const interval = setInterval(refreshRoomData, 2000); 301 + // Set up interval - refresh every 1 second for faster updates 302 + const interval = setInterval(refreshRoomData, 1000); 303 303 304 304 return () => { 305 305 clearInterval(interval);