Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ObjC tests: Review #75

Merged
merged 34 commits into from
Nov 19, 2015
Merged

ObjC tests: Review #75

merged 34 commits into from
Nov 19, 2015

Conversation

ricardopereira
Copy link
Contributor

No description provided.

 - Bug: Channel had is own clientId string. Changed to readonly property (proxy of auth.clientId)
 - Bug: when we copy a ClientOptions, the tokenDetails were always instanciated
 - Bug: ARTRealtimeChannel wasn't overriding the history method
 - (Conflicts) Separated base ARTPresence: ARTRealtimePresence and ARTRestPresence
 - ARTRestPresence has base class for ARTRealtimePresence
 - The REST was using the instance reference of ClientOptions and
should copy it to garante
…sing enterClient, updateClient, leaveClient)
 - Updated the Connection resume code to use the connectionId instead of the connectionKey
 - Added Warning when the response header has a X-Ably-ErrorMessage.
@@ -182,6 +182,10 @@ - (void)executeRequest:(NSMutableURLRequest *)request completion:(ARTHttpRequest
} else {
[self.logger debug:@"%@ %@: statusCode %ld", request.HTTPMethod, request.URL.absoluteString, (long)httpResponse.statusCode];
[self.logger verbose:@"Headers %@", httpResponse.allHeaderFields];
NSString *headerErrorMessage = httpResponse.allHeaderFields[@"X-Ably-ErrorMessage"];
if (headerErrorMessage && ![headerErrorMessage isEqualToString:@""]) {
[self.logger warn:@"%@", headerErrorMessage];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to merge, but could we also log the X-Ably-ErrorCode, if present?

mattheworiordan added a commit that referenced this pull request Nov 19, 2015
@mattheworiordan mattheworiordan merged commit d37114a into master Nov 19, 2015
@ricardopereira ricardopereira deleted the objc-tests branch November 20, 2015 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants