diff --git a/src/Observer.js b/src/Observer.js index 48949a5..af84ec7 100755 --- a/src/Observer.js +++ b/src/Observer.js @@ -6,7 +6,7 @@ export default class { if (connectionUrl.startsWith('//')) { const scheme = window.location.protocol === 'https:' ? 'wss' : 'ws' - connectionUrl = `${scheme}://${connectionUrl}` + connectionUrl = `${scheme}:${connectionUrl}` } this.connectionUrl = connectionUrl