We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdfb6ec commit 7aaafdbCopy full SHA for 7aaafdb
web/src/views/Home.vue
@@ -29,8 +29,9 @@ export default {
29
},
30
31
created() {
32
+ var backend = import.meta.env.VITE_APP_BACKEND
33
this.store.getAllMessages()
- this.connection = new WebSocket("ws://localhost:8000/api/v1/ws/netclients")
34
+ this.connection = new WebSocket(`ws://${backend}/api/v1/ws/netclients`)
35
this.connection.onmessage = function (event) {
36
if (event.data == this.cache) { // если не было новых сообщений и пришло тоже самое
37
return
0 commit comments