Jason was unable to reproduce this error using the ES5.3.2 iOS client api, and an ES5.3.2 server. This is the code that he added to the example:
Code:
[es.engine addEventListenerWithTarget:self action:@selector(onConnectionClosed:) eventIdentifier:EsMessageType_ConnectionClosedEvent];
- (void) onConnectionClosed:(EsConnectionClosedEvent*) event {
DLOG(@"onConnectionClosed");
}
And here are the logs that he saw during testing, starting with the successful LoginResponse:
Code:
2012-07-02 10:45:38.241 cocoa-touch-tests[18681:f803] -[EsManagerHelper onLoginResponse:]: onLoginResponse
2012-07-02 10:45:38.242 cocoa-touch-tests[18681:f803] -[EsUserManager addUser:]: addUser
2012-07-02 10:45:38.242 cocoa-touch-tests[18681:f803] Login Accepted: true
2012-07-02 10:45:38.243 cocoa-touch-tests[18681:f803] -[EsEngine checkMessageOrder:connection:]: Queued messages 0
2012-07-02 10:45:46.612 cocoa-touch-tests[18681:f803] -[EsSocketConnection stream:handleEvent:]: stream handleEvent 2
2012-07-02 10:45:46.617 cocoa-touch-tests[18681:f803] -[EsSocketConnection stream:handleEvent:]: NSStreamEventHasBytesAvailable
2012-07-02 10:45:46.617 cocoa-touch-tests[18681:f803] -[EsSocketConnection stream:handleEvent:]: stream handleEvent 16
2012-07-02 10:45:46.618 cocoa-touch-tests[18681:f803] -[EsSocketConnection stream:handleEvent:]: NSStreamEventEndEncountered
2012-07-02 10:45:46.621 cocoa-touch-tests[18681:f803] -[cocoa_touch_testsAppDelegate onConnectionClosed:]:
onConnectionClosed