Serverroot connectivity fixes

This commit is contained in:
Sam 2018-07-24 17:28:11 +10:00
parent f3671ff5af
commit 200b751c71
2 changed files with 7 additions and 3 deletions

View File

@ -167,7 +167,7 @@ export default {
{
location: 'Sydney, Australia',
text: 'SyncLounge AU1',
value: 'https://v2au1.synclounge.tv',
value: 'https://v2au1.synclounge.tv/server',
flag: 'flags/aus.png'
},
{
@ -179,7 +179,7 @@ export default {
{
location: 'Miami, United States',
text: 'SyncLounge US1',
value: 'https://v2us1.synclounge.tv',
value: 'https://v2us1.synclounge.tv/server',
flag: 'flags/usa.png'
},
{

View File

@ -126,10 +126,14 @@ export default {
console.log('Done', address)
}
console.log('Pathname', path)
let ext = ''
if (path) {
ext = '/' + path
}
state._socket = state._io.connect(address, {
'forceNew': true,
'connect timeout': 7000,
path: '/' + path + '/socket.io'
path: ext + '/socket.io'
})
state._socket.on('connect', function (result) {
// Good connection