Skip to content

Commit 30360bf

Browse files
committed
Update Objective-C example to work with changes
1 parent e787ed2 commit 30360bf

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

iOS Example Obj-C/iOS Example Obj-C/ViewController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#import <UIKit/UIKit.h>
1010
#import "PusherSwift/PusherSwift-Swift.h"
1111

12-
@interface ViewController : UIViewController <PusherConnectionDelegate>
12+
@interface ViewController : UIViewController <PusherDelegate>
1313

1414
@property (nonatomic, strong, readwrite) Pusher *client;
1515

iOS Example Obj-C/iOS Example Obj-C/ViewController.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,24 @@ - (void)viewDidLoad {
6262
}];
6363
}
6464

65-
- (void)connectionStateDidChangeFrom:(enum ConnectionState)old to:(enum ConnectionState)new_ {
65+
- (void)changedConnectionStateFrom:(enum ConnectionState)old to:(enum ConnectionState)new_ {
6666
NSLog(@"Old connection: %d, new connection: %d", (int)old, (int)new_);
6767
}
6868

6969
- (void)debugLogWithMessage:(NSString *)message {
7070
NSLog(@"%@", message);
7171
}
7272

73-
- (void)subscriptionDidSucceedWithChannelName:(NSString *)channelName {
74-
NSLog(@"Subscribed to %@", channelName);
73+
- (void)subscribedToChannelWithName:(NSString *)name {
74+
NSLog(@"Subscribed to channel %@", name);
7575

76-
if ([channelName isEqual: @"presence-test"]) {
76+
if ([name isEqual: @"presence-test"]) {
7777
NSLog(@"%@", [(PusherPresenceChannel *)[self.client.connection.channels findWithName:@"presence-test"] members]);
7878
}
7979
}
8080

81-
- (void)subscriptionDidFailWithChannelName:(NSString *)channelName response:(NSURLResponse *)response data:(NSString *)data error:(NSError *)error {
82-
81+
- (void)failedToSubscribeToChannelWithName:(NSString *)name response:(NSURLResponse *)response data:(NSString *)data error:(NSError *)error {
82+
NSLog(@"Failed to subscribe to channel %@", name);
8383
}
8484

8585
- (void)didReceiveMemoryWarning {

0 commit comments

Comments
 (0)