From ebe8bc7bd3b40bfbdcbb858ebdaf38a716ece8d3 Mon Sep 17 00:00:00 2001 From: kitolog Date: Thu, 1 Mar 2018 13:16:19 +0300 Subject: [PATCH] Fixed timeout errors params --- src/ios/SocketsForCordova/Classes/SocketAdapter.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ios/SocketsForCordova/Classes/SocketAdapter.m b/src/ios/SocketsForCordova/Classes/SocketAdapter.m index 8587546..b14f1d1 100644 --- a/src/ios/SocketsForCordova/Classes/SocketAdapter.m +++ b/src/ios/SocketsForCordova/Classes/SocketAdapter.m @@ -77,13 +77,13 @@ int writeTimeoutSeconds = 5.0; -(void)onOpenTimeout:(NSTimer *)timer { NSLog(@"[NATIVE] Open timeout: %d", openTimeoutSeconds); - self.errorEventHandler(@"openTimeout", @"timeout"); + self.errorEventHandler(@"Socket open timeout", @"openTimeout"); openTimer = nil; } -(void)onWriteTimeout:(NSTimer *)timer { NSLog(@"[NATIVE] Write timeout: %d", writeTimeoutSeconds); - self.errorEventHandler(@"writeTimeout", @"timeout"); + self.errorEventHandler(@"Socket write timeout", @"writeTimeout"); writeTimer = nil; }