0
如何將推送客戶端連接到heroku環境。如何在iOS中將推送客戶端連接到Heroku
self.client = [PTPusher pusherWithKey:PusherAppKey delegate:self encrypted:YES];
_client.authorizationURL = [NSURL URLWithString:@"XXXXX.com"];
[self.client connect];
self.channel = [_client subscribeToChannelNamed:@"XXXXXXXXXXXXXXX"];
[self.client bindToEventNamed:@"XXXXXXXXXXXXX" target:self action:@selector(handleNewMessageEvent:)];