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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user