deemix-webui/src/utils/socket.js

8 lines
161 B
JavaScript
Raw Normal View History

import store from '@/store'
export const socket = io.connect(window.location.href)
2020-09-15 16:11:29 +00:00
socket.on('init_update', data => {
store.dispatch('setAboutInfo', data)
})