From 200b751c71919e2a3807e47fe2e61935dc5617a5 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 24 Jul 2018 17:28:11 +1000 Subject: [PATCH] Serverroot connectivity fixes --- src/components/application/joinroom.vue | 4 ++-- src/store/modules/synclounge.js | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/application/joinroom.vue b/src/components/application/joinroom.vue index 2d6b62b9..0e8b0b25 100644 --- a/src/components/application/joinroom.vue +++ b/src/components/application/joinroom.vue @@ -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' }, { diff --git a/src/store/modules/synclounge.js b/src/store/modules/synclounge.js index 64e70353..ccb6c211 100644 --- a/src/store/modules/synclounge.js +++ b/src/store/modules/synclounge.js @@ -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