Skip to content

Instantly share code, notes, and snippets.

Last active November 11, 2021 04:39
What would you like to do?
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