Javascript – React App crashes without invoking WebSocket.close() function in useEffect cleanup function
I’m building a test app that connects to a server via WebSocket. The app crashes when I don’t use the WebSocket.close() function in the cleanup part of the useEffect hook. The app works fine when WebSocket.close() is included, ofc I…