From 90572f9fb2b0565e990d4c0f7f51cb3be8d2d9c5 Mon Sep 17 00:00:00 2001 From: Sandeep Joshi <24805252+isandeepj@users.noreply.github.com> Date: Fri, 25 Apr 2025 14:43:53 +0530 Subject: [PATCH] fix: add @unknown default to ensure exhaustive switch handling in WebSocket event cases - Prevents compile-time error when the SDK adds new enum cases - Improves forward compatibility with future PieSocket/Channels SDK updates - Resolves "switch must be exhaustive" error in Channel.swift --- Sources/Channel.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Channel.swift b/Sources/Channel.swift index a9d360b..90ff388 100644 --- a/Sources/Channel.swift +++ b/Sources/Channel.swift @@ -89,6 +89,8 @@ public class Channel{ case .ping(_): break case .viabilityChanged(_): break case .reconnectSuggested(_): break + @unknown default: + break } } }catch PieSocketException.PausedForFetchingJwt{