From 03ebe2c71ca7e0fa59fd8363bf8e7906e72ace98 Mon Sep 17 00:00:00 2001 From: Chris Bailey Date: Fri, 31 May 2024 17:44:30 -0700 Subject: [PATCH] Report WebSocket failures to OnConnectionUpdated handler --- src/FishyFlip/ATWebSocketProtocol.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FishyFlip/ATWebSocketProtocol.cs b/src/FishyFlip/ATWebSocketProtocol.cs index 150d870e..ad2ff873 100644 --- a/src/FishyFlip/ATWebSocketProtocol.cs +++ b/src/FishyFlip/ATWebSocketProtocol.cs @@ -313,5 +313,7 @@ private async Task ReceiveMessages(ClientWebSocket webSocket, CancellationToken this.logger?.LogError(e, "WSS: ATError receiving message."); } } + + this.OnConnectionUpdated?.Invoke(this, new SubscriptionConnectionStatusEventArgs(webSocket.State)); } } \ No newline at end of file