remove env file, make ws secure in prod
This commit is contained in:
@@ -12,7 +12,7 @@ class Connection {
|
||||
if(window.location.hostname === "localhost") {
|
||||
this.ws = new WebSocket("ws://" + "localhost:3003")
|
||||
} else {
|
||||
this.ws = new WebSocket("ws://" + window.location.hostname + window.location.pathname)
|
||||
this.ws = new WebSocket("wss://" + window.location.hostname + window.location.pathname)
|
||||
}
|
||||
this.ws.addEventListener('open', () => {
|
||||
this.connectionTries = 0
|
||||
|
||||
Reference in New Issue
Block a user