I am facing the issue: Extension socket not available: /var/osquery/osquery.em when try to execute below cpp program!..
int main(int argc, char* argv[]) {
 osquery::Initializer runner(argc, argv, ToolType::EXTENSION);
 auto status = startExtension("example", "0.0.1");
 if (!status.ok()) {
  LOG(ERROR) << status.getMessage();
  runner.requestShutdown(status.getCode());
 }}
requesting a help here