Skip to content

Instantly share code, notes, and snippets.

@jungleeforce
Last active November 11, 2021 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jungleeforce/fc51827a0ad9129816806de30f291a7a to your computer and use it in GitHub Desktop.
Save jungleeforce/fc51827a0ad9129816806de30f291a7a to your computer and use it in GitHub Desktop.
npm package dependencies & initialization
// npm packages & initialization
const grpc = require("grpc");
const fs = require("fs");
const jsforce = require("jsforce");
const avro = require("avro-js");
const protoLoader = require("@grpc/proto-loader");
const packageDef = protoLoader.loadSync("sf.proto", {});
const grpcObj = grpc.loadPackageDefinition(packageDef);
const sfdcPackage = grpcObj.eventbus.v1;
const root_cert = fs.readFileSync("roots.cer");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment