From 0b51119aa65d7f3ca9b581334d152db2e3734e92 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 5 Dec 2025 10:10:38 +0100 Subject: [PATCH 1/4] Optimizing & Bug Fixing Make github workflow smoother and optimizing websocket --- .github/workflows/dotnet.yml | 4 ++-- .github/workflows/publish.yml | 2 +- Services/WebSockClient.cs | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 332c319..5063b28 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,8 +1,8 @@ name: Build and Release dotNet -#on: [push] on: push: + branches: [ main ] paths-ignore: - '*.md' - '.github/**' @@ -114,7 +114,7 @@ jobs: build-project: - #if: github.event.pull_request.merged == true + if: github.event.pull_request.merged == true name: Build dotNet strategy: matrix: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 34c0e29..d8458ba 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,8 @@ name: Docker Image CI -#on: [ push ] on: push: + branches: [ main ] paths-ignore: - '*.md' - '.github/**' diff --git a/Services/WebSockClient.cs b/Services/WebSockClient.cs index 947e248..5cf5691 100644 --- a/Services/WebSockClient.cs +++ b/Services/WebSockClient.cs @@ -149,6 +149,9 @@ public async void Stop() private async void ReconnectDelayed(string clientToken) { + if (ws != null) + await ws!.Stop(WebSocketCloseStatus.Empty, "Connection closing."); + ws = null; await Task.Delay(10000); if (!isStopped) Start(clientToken, true); From dad35bc889f78a7fa89951cd377276ace6b0b1d5 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 5 Dec 2025 10:11:42 +0100 Subject: [PATCH 2/4] added dev branch to push --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d8458ba..d7fe982 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,7 +2,7 @@ name: Docker Image CI on: push: - branches: [ main ] + branches: [ main, dev ] paths-ignore: - '*.md' - '.github/**' From 9b2c1a81553675150a309ebe8860f43339446a13 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 5 Dec 2025 10:16:17 +0100 Subject: [PATCH 3/4] Added Log --- Services/WebSockClient.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Services/WebSockClient.cs b/Services/WebSockClient.cs index 5cf5691..cf26a26 100644 --- a/Services/WebSockClient.cs +++ b/Services/WebSockClient.cs @@ -150,7 +150,11 @@ public async void Stop() private async void ReconnectDelayed(string clientToken) { if (ws != null) + { + Console.WriteLine("Stopping WebSocket..."); await ws!.Stop(WebSocketCloseStatus.Empty, "Connection closing."); + } + ws = null; await Task.Delay(10000); if (!isStopped) From a70affd1f2fd7c7e75d5d1d649838e09888d70f9 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 5 Dec 2025 10:40:12 +0100 Subject: [PATCH 4/4] v1.5.1.2 --- iGotify Notification Assist.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iGotify Notification Assist.csproj b/iGotify Notification Assist.csproj index 13c86e3..389b8a9 100644 --- a/iGotify Notification Assist.csproj +++ b/iGotify Notification Assist.csproj @@ -6,9 +6,9 @@ enable true iGotify_Notification_Assist - 1.5.1.1 - 1.5.1.1 - 1.5.1.1 + 1.5.1.2 + 1.5.1.2 + 1.5.1.2 default