Skip to content

Commit

Permalink
A few changes that got lost in a rebase with conflicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcard committed Jan 4, 2016
1 parent 3529066 commit 1df3e28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ably-ios/ARTWebSocketTransport.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ - (void)connect {
return;
}

NSURLQueryItem *accessTokenParam = [NSURLQueryItem queryItemWithName:@"access_token" value:(tokenDetails.token)];
NSURLQueryItem *accessTokenParam = [NSURLQueryItem queryItemWithName:@"accessToken" value:(tokenDetails.token)];
[selfStrong setupWebSocket:@[accessTokenParam] withOptions:selfStrong.options];
// Connect
[selfStrong.websocket open];
Expand Down Expand Up @@ -208,7 +208,7 @@ - (void)abort:(ARTStatus *)reason {

- (void)webSocketOpen {
ARTWebSocketTransport * __weak weakSelf = self;
[self.logger debug:__FILE__ line:__LINE__ message:@"%p websocket did open", self];
[self.logger debug:__FILE__ line:__LINE__ message:@"%p websocket did open", self];

CFRunLoopPerformBlock(self.rl, kCFRunLoopDefaultMode, ^{
ARTWebSocketTransport *s = weakSelf;
Expand Down Expand Up @@ -292,7 +292,7 @@ - (void)webSocketMessageText:(NSString *)text {
ARTWebSocketTransport *s = weakSelf;
if (s) {
ARTProtocolMessage *pm = [s.encoder decodeProtocolMessage:data];
[s.delegate realtimeTransport:s didReceiveMessage:pm];
[s receive:pm];
}
});
CFRunLoopWakeUp(self.rl);
Expand All @@ -306,7 +306,7 @@ - (void)webSocketMessageData:(NSData *)data {
ARTWebSocketTransport *s = weakSelf;
if (s) {
ARTProtocolMessage *pm = [s.encoder decodeProtocolMessage:data];
[s.delegate realtimeTransport:s didReceiveMessage:pm];
[s receive:pm];
}
});
CFRunLoopWakeUp(self.rl);
Expand Down
2 changes: 1 addition & 1 deletion ablySpec/Auth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class Auth : QuickSpec {
client.connect()

if let transport = client.transport as? MockTransport, let query = transport.lastUrl?.query {
expect(query).to(haveParam("access_token", withValue: client.auth().tokenDetails?.token ?? ""))
expect(query).to(haveParam("accessToken", withValue: client.auth().tokenDetails?.token ?? ""))
}
else {
XCTFail("MockTransport is not working")
Expand Down

0 comments on commit 1df3e28

Please sign in to comment.