Did a lot. Tested SSE & started on socket.io, should prob kill s.io replace w/ ws
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user