Skip to content

Instantly share code, notes, and snippets.

@jzucker2
Created June 22, 2015 22:19
Show Gist options
  • Save jzucker2/831a5817645820ffe982 to your computer and use it in GitHub Desktop.
Save jzucker2/831a5817645820ffe982 to your computer and use it in GitHub Desktop.
Example of batched subscribe issue
self.subscribeExpectation = [self expectationWithDescription:@"network"];
[self.client subscribeToChannels:@[@"a", @"b"] withPresence:YES];
[self.client subscribeToChannels:@[@"c"] withPresence:NO];
[self waitForExpectationsWithTimeout:10 handler:^(NSError *error) {
if (error) {
NSLog(@"error: %@", error);
XCTFail(@"what went wrong?");
}
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment