Credits to https://github.com/nhooyr/websocket https://github.com/gorilla/mux https://github.com/robtaussig/react-use-websocket