Nuxt/examples/with-sockets/plugins/socket.io.js

5 lines
97 B
JavaScript
Raw Normal View History

2017-01-18 16:25:06 +00:00
import io from 'socket.io-client'
2017-01-18 17:04:41 +00:00
const socket = io(process.env.HOST_URL)
2017-01-18 16:25:06 +00:00
export default socket