From cd967acd7424e97da51971750761db489228f4b9 Mon Sep 17 00:00:00 2001 From: Lewis Marshall Date: Thu, 25 Jul 2024 23:05:07 +0100 Subject: [PATCH] WIP don't ignore messages when WebSocket is closed Signed-off-by: Lewis Marshall --- Source/ARTWebSocketTransport.m | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Source/ARTWebSocketTransport.m b/Source/ARTWebSocketTransport.m index c14c83c6c..51220afd0 100644 --- a/Source/ARTWebSocketTransport.m +++ b/Source/ARTWebSocketTransport.m @@ -337,11 +337,6 @@ - (ARTRealtimeTransportError *)classifyError:(NSError *)error { - (void)webSocket:(id)webSocket didReceiveMessage:(id)message { ARTLogVerbose(self.logger, @"R:%p WS:%p websocket did receive message", _delegate, self); - if (self.websocket.readyState == ARTWebSocketReadyStateClosed) { - ARTLogDebug(self.logger, @"R:%p WS:%p websocket is closed, message has been ignored", _delegate, self); - return; - } - if ([message isKindOfClass:[NSString class]]) { [self webSocketMessageText:(NSString *)message]; } else if ([message isKindOfClass:[NSData class]]) {