🔧 Fixing a lot of static path references in actions

This commit is contained in:
2021-10-20 14:13:33 -07:00
parent 261e3ee882
commit f341529e6c
4 changed files with 13 additions and 10 deletions

View File

@@ -8,7 +8,8 @@ import { success } from "react-notification-system-redux";
const WebSocketContext = createContext(null);
export const WebSocketProvider = ({ children }): ReactElement => {
const dispatch = useDispatch();
const socketHost = `${process.env.DOCKER_HOST}:8051` || SOCKET_BASE_URI;
const socketHost =
`http://${process.env.DOCKER_HOST}:8051` || SOCKET_BASE_URI;
const socket: Socket = io(socketHost);
socket.on("connect", () => {