@Override
 public void onPSubscribe(String pattern, int subscribedChannels) {
   setReady();
   super.onPSubscribe(pattern, subscribedChannels);
 }
 @Override
 public void onSubscribe(String channel, int subscribedChannels) {
   setReady();
   super.onSubscribe(channel, subscribedChannels);
 }