Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cfg from '../../config'
- import Vue from 'vue'
- import VueSocketio from 'vue-socket.io'
- let endpoint = process.env.NODE_ENV == 'production'
- ? cfg.hostname
- : `http://${cfg.domain.dev}:${cfg.port}`;
- Vue.use(VueSocketio, endpoint, {
- reconnection: true,
- reconnectionDelay: 1000,
- reconnectionDelayMax : 5000,
- reconnectionAttempts: Infinity
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement