2018-05-31 13:59:18 -07:00
|
|
|
// import WebSocket from '@uci/websocket-client'
|
2019-01-01 17:23:46 -08:00
|
|
|
import WebSocket from '../../../src'
|
2018-05-31 13:59:18 -07:00
|
|
|
|
|
|
|
const ws = new WebSocket(process.env.WSS || 'ws://0.0.0.0:8090')
|
|
|
|
|
|
|
|
export { ws }
|
|
|
|
|
|
|
|
// leave the export, even if you don't use it
|
|
|
|
export default ({ Vue }) => {
|
|
|
|
Vue.prototype.$socket = ws
|
|
|
|
}
|