code: public static function queryWorker($socketAddress, WorkerBootstrapProfile $bootstrapProfile)
      {
          $adminCookie = $bootstrapProfile->getAdminCookie();
          $channel = self::connect($socketAddress, $bootstrapProfile);
          AdminEncoding::sendQueryMessage($channel, $adminCookie);
          for (;;) {
              $message = $channel->receiveMessage();
              $status = AdminEncoding::getStatusMessage($message);
              if ($status !== null) {
                  return $status;
              }
          }
      }
docs: @param string                 $socketAddress
  @param WorkerBootstrapProfile $bootstrapProfile
  
  @throws Exception\LogicException
  @throws Exception\RuntimeException
  
  @return Status\WorkerStatus