Fixed hostname

master
Wilco Kruijer 4 years ago
parent 738356e209
commit f362d52056
  1. 2
      frontend/src/util/socket.ts

@ -1,7 +1,7 @@
import io from "socket.io-client";
const socket = io("http://localhost:3001");
const socket = io(window.location.protocol + "//" + window.location.hostname + ":3001");
export default socket;
/**

Loading…
Cancel
Save