diff --git a/client/MhdMapClient.js b/client/MhdMapClient.js index 20d21e1..c856f35 100644 --- a/client/MhdMapClient.js +++ b/client/MhdMapClient.js @@ -44,7 +44,7 @@ export default class MhdMapClient { this.startMap(); const loc = document.location; - this.wsUrl = 'ws' + (loc.protocol === 'https:' ? 's' : '')+ '://' + loc.host + loc.pathname + '/ws'; + this.wsUrl = 'ws' + (loc.protocol === 'https:' ? 's' : '')+ '://' + loc.host + loc.pathname.replace(/\/$/, "") + '/ws'; await this.connectWs(); setInterval(() => {