I want to add my app custom token in Pusher header. Below is my code.
OCAuthMethod *authMethod = [[OCAuthMethod alloc] initWithAuthEndpoint:kPushedWebHockUrl];
OCPusherHost *host = [[OCPusherHost alloc] initWithCluster:kPusherClusterId];
PusherClientOptions *options = [[PusherClientOptions alloc] initWithOcAuthMethod:authMethod attemptToReturnJSONObject:YES autoReconnect:YES ocHost:host port:nil encrypted:YES activityTimeout:nil];
self.pusher = [[Pusher alloc] initWithAppKey:kPusherKey options:options];
self.pusher.connection.delegate = self;
[self.pusher connect];