try disconnecting to improve memory usage

This commit is contained in:
Josh Hawkins 2024-02-12 09:05:56 -06:00
parent 1beb990f43
commit 3b76fef97c

View File

@ -243,6 +243,10 @@ function MSEPlayer({ camera, className, onPlaying }: MSEPlayerProps) {
useEffect(() => {
onConnect();
return () => {
onDisconnect();
};
}, [wsURL]);
return (