allow for insecure wss connections

This commit is contained in:
Nitwel 2024-05-27 11:48:40 +02:00
parent 241feb631d
commit 32236f7004

View File

@ -56,7 +56,7 @@ func start(url: String, token: String) -> ConnectionError:
connecting = true connecting = true
print("Connecting to %s" % url + "/api/websocket") print("Connecting to %s" % url + "/api/websocket")
var error = socket.connect_to_url(url + "/api/websocket") var error = socket.connect_to_url(url + "/api/websocket", TLSOptions.client_unsafe())
if error != OK: if error != OK:
print("Error connecting to %s: %s" % [url, error]) print("Error connecting to %s: %s" % [url, error])