Files
frigate/web/src/components
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
..
2026-03-07 06:43:00 -07:00
2025-10-27 07:44:34 -05:00
2026-03-04 10:07:34 -06:00
2026-02-27 08:55:36 -07:00
2026-03-08 12:27:53 -05:00
2026-03-12 16:57:42 -06:00
2025-07-22 06:24:15 -06:00
2026-03-04 10:07:34 -06:00
2025-11-17 08:12:05 -06:00
2026-03-12 16:57:42 -06:00
2026-03-12 16:57:42 -06:00
2026-03-04 10:07:34 -06:00