Open DevelopscriptLLC opened 8 years ago
A timeout of zero will be no timeout.
If i give timeout value as Zero i am getting Callback. No Response at All.
@DevelopscriptLLC How did you solve this? Thanks
@pablogeek For calls like emitWithAck i am setting 0 to the parameter timeoutAfter. Anyway this is not the perfect solution. But it worked for me.
I am using following method for getting acknowledgement from server.
emitWithAck(event:String, _ items:AnyObject...) -> (timeout:UInt64, callback:(NSArray?) -> Void) -> Void
Normal Response getting very quickly, But when the device is connected to some lossy networks the negative acknowledgement [ No Ack ] response taking too much time to receive. I am stuck here. Do you new methods, or methods without timeout. Please let me know. I tried with timeout value as Zero. But it does'nt work.