import Vue from 'vue';

Vue.config.weixin = {
  // baseUrl: process.env.BASE_URL + 'weixin',
  baseUrl: `http://${location.host}`,
};

Vue.config.stomp = {
  // brokerURL: 'ws://192.168.1.118/ws',
  brokerURL: '/ws', // ws://${location.host}/ws
  // brokerURL: 'ws://127.0.0.1:8000/ws',
  connectHeaders: {
    host: 'platform',
    login: 'visit', //visit
    passcode: 'visit', //visit123
  },
  // debug: true,
  reconnectDelay: 5000,
  heartbeatIncoming: 4000,
  heartbeatOutgoing: 4000,
};
