Commit 82a2ddcd authored by Anton Koch's avatar Anton Koch

Fix socket configuration

parent 47425d64
Pipeline #30364 passed with stage
in 1 minute and 19 seconds
import VueSocketIO from ''
export default ({ Vue }) => {
if (!process.env.SOCKETS_HOST) return
if (!window.SOCKETS_HOST && !process.env.SOCKETS_HOST) return
Vue.use(new VueSocketIO({
debug: true,
connection: `${process.env.SOCKETS_HOST}`,
connection: `${process.env.SOCKETS_HOST || window.SOCKETS_HOST}`,
query: {
token: localStorage.getItem('access_token')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment