deemix-webui/src/utils/socket.js

8 lines
142 B
JavaScript
Raw Normal View History

import store from '@/store'
2021-01-31 15:55:37 +00:00
export const socket = io.connect('/')
2020-09-15 16:11:29 +00:00
socket.on('init_update', data => {
store.dispatch('setAppInfo', data)
2020-09-15 16:11:29 +00:00
})