you can replace default path /socket.io with yours

config like:
Vue.use(VueSocketio, {url: 'http://localhost:3000', path: '/your_path'});
and you can set namespace the sametime:
Vue.use(VueSocketio, {url: 'http://localhost:3000/namespace', path: '/your_path'});
all these above will create the connect like: 
ws://localhost:3000/your_path/...
This commit is contained in:
Channely 2017-10-16 03:18:40 -05:00 committed by GitHub
parent 57887ea0a1
commit e70b692373

View file

@ -7,6 +7,8 @@ export default class{
if(typeof connection == 'string'){
this.Socket = Socket(connection);
}else if(connection.url){
this.Socket = Socket(connection.url, {path: connection.path ? connection.path : '/socket.io'});
}else{
this.Socket = connection
}