update
This commit is contained in:
parent
7cd65f70a0
commit
3adf1d04a8
@ -102,7 +102,7 @@
|
||||
feeds: [],
|
||||
};
|
||||
},
|
||||
async created() {
|
||||
async mounted() {
|
||||
const protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://';
|
||||
const socket = new WebSocket(protocol + window.location.host + "/ws");
|
||||
socket.onmessage = event => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user