frigate/web/src
ryzendigo e80da2b297
fix: WebSocket connection leaked on WebRTC player cleanup (#22473)
The connect() function creates a WebSocket but never stores the
reference. The useEffect cleanup only closes the RTCPeerConnection
via pcRef, leaving the WebSocket open.

Each time the component re-renders with changed deps (camera switch,
playback toggle, microphone toggle), a new WebSocket is created
without closing the previous one. This leaks connections until the
browser garbage-collects them or the server times out.

Store the WebSocket in a ref and close it in the cleanup function.
2026-03-16 06:47:07 -06:00
..
api Replace react-tracked and react-use-websocket with useSyncExternalStore (#22386) 2026-03-11 09:02:51 -05:00
components fix: WebSocket connection leaked on WebRTC player cleanup (#22473) 2026-03-16 06:47:07 -06:00
context Update frontend to React 19 (#22275) 2026-03-05 07:42:38 -07:00
hooks fix: variable shadowing silently drops object label updates (#22472) 2026-03-16 06:43:25 -06:00
lib UI tweaks and fixes (#22448) 2026-03-15 07:26:23 -05:00
pages UI tweaks and fixes (#22448) 2026-03-15 07:26:23 -05:00
types UI tweaks (#22405) 2026-03-12 16:57:42 -06:00
utils Frontend fixes (#22309) 2026-03-07 06:43:00 -07:00
views UI tweaks and fixes (#22448) 2026-03-15 07:26:23 -05:00
App.tsx Frontend fixes (#22309) 2026-03-07 06:43:00 -07:00
env.ts Fix linter and fix lint issues (#10141) 2024-02-28 16:23:56 -06:00
index.css Improve live streaming (#16447) 2025-02-10 09:42:35 -07:00
login.tsx Fix auth when serving Frigate at a subpath (#12815) 2024-08-09 07:26:26 -06:00
main.tsx feat: add i18n (translation/localization) (#16877) 2025-03-16 10:36:20 -05:00
vite-env.d.ts switch to vite 2022-03-11 07:49:06 -06:00