Skip to content

Commit

Permalink
Merge pull request #51 from FineTralfazz/report_websocket_failures
Browse files Browse the repository at this point in the history
Report WebSocket failures to OnConnectionUpdated handler
  • Loading branch information
drasticactions authored Jun 2, 2024
2 parents e4c102b + 03ebe2c commit edcf2a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FishyFlip/ATWebSocketProtocol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

0 comments on commit edcf2a5

Please sign in to comment.