From 030864c77bfcff150813ed6cd255b8e4fa6832c6 Mon Sep 17 00:00:00 2001 From: "dries.k" Date: Thu, 24 Mar 2022 13:45:50 +0100 Subject: [PATCH] qurl: set ws or wss scheme --- gotify_tray/gotify/listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gotify_tray/gotify/listener.py b/gotify_tray/gotify/listener.py index c29a3a0..81895a1 100644 --- a/gotify_tray/gotify/listener.py +++ b/gotify_tray/gotify/listener.py @@ -21,7 +21,7 @@ class Listener(QtCore.QThread): super(Listener, self).__init__() qurl = QtCore.QUrl(url) - qurl.setScheme("wss") + qurl.setScheme("wss" if qurl.scheme() == "https" else "ws") qurl.setPath("/stream") qurl.setQuery(f"token={client_token}")