Skip to content

Commit

Permalink
frontend: re-enable websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
USA-RedDragon committed Feb 17, 2024
1 parent e4cd6bd commit f3c9878
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import API from '@/services/API';
import { mapStores } from 'pinia';
import { useUserStore, useSettingsStore } from '@/store';
// import { getWebsocketURI } from '@/services/util';
// import ws from '@/services/ws';
import { getWebsocketURI } from '@/services/util';
import ws from '@/services/ws';
export default {
name: 'App',
Expand All @@ -34,7 +34,7 @@ export default {
created() {},
mounted() {
this.fetchData();
// this.socket = ws.connect(getWebsocketURI() + '/events', this.onWebsocketMessage);
this.socket = ws.connect(getWebsocketURI() + '/events', this.onWebsocketMessage);
},
unmounted() {
if (this.socket) {
Expand Down

0 comments on commit f3c9878

Please sign in to comment.