Skip to content

Commit ff14755

Browse files
authored
Merge pull request #90 from dennisreimann/patch-1
Fix connection URL when resolving the scheme
2 parents 64c858f + 962958a commit ff14755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Observer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default class {
66

77
if (connectionUrl.startsWith('//')) {
88
const scheme = window.location.protocol === 'https:' ? 'wss' : 'ws'
9-
connectionUrl = `${scheme}://${connectionUrl}`
9+
connectionUrl = `${scheme}:${connectionUrl}`
1010
}
1111

1212
this.connectionUrl = connectionUrl

0 commit comments

Comments
 (0)