🔧 Passing just the hostname and not port

This commit is contained in:
2021-10-20 07:55:07 -07:00
parent 343dbf075d
commit 705ccaa51d
3 changed files with 3 additions and 5 deletions

View File

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