remove env file, make ws secure in prod

This commit is contained in:
metacryst
2025-10-30 13:17:53 -05:00
parent 9dec94e58e
commit 0658c2603a
4 changed files with 2 additions and 6 deletions

View File

@@ -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