Did a lot. Tested SSE & started on socket.io, should prob kill s.io replace w/ ws

This commit is contained in:
2021-11-26 20:05:42 +01:00
parent 2f88516326
commit b8a61d1a0e
25 changed files with 1200 additions and 47 deletions

View File

@@ -97,7 +97,7 @@ export default {
this.socket = null;
},
mounted() {
this.socket = io(window.location.origin);
this.socket = io('/chat');
this.socket.on("chat", msg => {
this.chatHistory.push(msg);
});