Fixed so io is being sent in a better manner, and listening on the same port as the rest

This commit is contained in:
Kasper Rynning-Tønnesen
2020-03-13 17:02:28 +01:00
parent b35dd5a971
commit bfbfa5a8bc
3 changed files with 10 additions and 7 deletions

View File

@@ -66,7 +66,7 @@ export default {
mounted() {
this.getAttendees();
this.getWinners();
this.socket = io(window.location.hostname + ":8080");
this.socket = io(`${window.location.hostname}:${window.location.port}`);
this.socket.on("color_winner", msg => {
this.currentWinnerDrawn = true;
this.currentWinnerColor = msg.color;