Closed yunze-chia closed 4 years ago
This fixes the window.location.protocol matching by adding a trailing colon to the 'http' string. wss:// protocol is also used in place of ws:// if https is used.
window.location.protocol
'http'
wss://
ws://
https
Hello! I've been trying out replica and found this issue when serving through TLS. Thought I would contribute a PR.
replica
Awesome, thanks for the PR!
This fixes the
window.location.protocol
matching by adding a trailing colon to the'http'
string.wss://
protocol is also used in place ofws://
ifhttps
is used.