2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-05-17 04:19:38 +03:00

Merge pull request #90 from dennisreimann/patch-1

Fix connection URL when resolving the scheme
This commit is contained in:
Viktor
2020-01-27 17:41:33 +03:00
committed by GitHub
+1 -1
View File
@@ -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