Transfer data using CPDistributedMessagingCenter between 2 or more clients.
This will dispatch the same data to all listening clients:
CPDistributedMessagingCenter * center = [CPDistributedMessagingCenter centerNamed:@"com.your.tweak"];
NSDictionary * dictionary = @{ @"key" : @"value" };
[center sendMessageName:@"set" userInfo:dictionary];
This will dispatch the same data to all listening clients:
CPDistributedMessagingCenter * center = [CPDistributedMessagingCenter centerNamed:@"com.your.tweak"];
NSDictionary * reply = [center sendMessageAndReceiveReplyName:@"get" userInfo:nil];
NSLog(@"current configuration: %@", reply);