All documentation
SDK

createPulseGrid Function

Create the main PulseGrid JavaScript client.

JavaScript

Overview

createPulseGrid(config) is the entry point into the JavaScript PulseGrid module. It returns a configured client with: - auth helpers - project helpers - token helpers - channel helpers

Setup

Pass: - baseUrl - publicKey - secretKey - projectId

Code example

createPulseGrid Function
import { createPulseGrid } from "pulsegrid";

const pulsegrid = createPulseGrid({
  baseUrl: process.env.PULSEGRID_BASE_URL,
  publicKey: process.env.PULSEGRID_PUBLIC_KEY,
  secretKey: process.env.PULSEGRID_SECRET_KEY,
  projectId: process.env.PULSEGRID_PROJECT_ID,
});

Notes

This is the clean setup point developers should start with.