Skip to content

Commit

Permalink
Merge pull request #90 from dennisreimann/patch-1
Browse files Browse the repository at this point in the history
Fix connection URL when resolving the scheme
  • Loading branch information
weglov authored Jan 27, 2020
2 parents 64c858f + 962958a commit ff14755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Observer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff14755

Please sign in to comment.