9 lines
171 B
JavaScript
9 lines
171 B
JavaScript
import io from 'socket.io-client'
|
|
import apiConfig from '~/config/api.config'
|
|
|
|
const socket = io(apiConfig.SOCKET, {
|
|
transports: ['websocket']
|
|
})
|
|
|
|
export default socket
|