From 5726342a49cb66bc14c40bb8d014eef59bd7c249 Mon Sep 17 00:00:00 2001 From: Vu Luong Date: Sun, 6 Aug 2023 12:45:49 +1000 Subject: [PATCH] only set udp status when using udp transport type (#36) * implement methods for EzyWSClient * update exception type * make isEnableSSL return false for EzyWSClient * only set udp status when using udp transport type * update setUdpStatus for EzyWSClient --- unity/EzyWSClient.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unity/EzyWSClient.cs b/unity/EzyWSClient.cs index 1407654..b42067d 100644 --- a/unity/EzyWSClient.cs +++ b/unity/EzyWSClient.cs @@ -317,9 +317,11 @@ public EzyConnectionStatus getUdpStatus() throw new InvalidOperationException("not supported"); } + /** + * This method sets UDP status, so it should do nothing for WebSocket + */ public void setUdpStatus(EzyConnectionStatus status) { - throw new InvalidOperationException("not supported"); } public bool isUdpConnected()