Eventvisor

SDKs

Browser SDK

You can use the same Eventvisor JavaScript SDK in your browser-based applications.

Installation

Install with npm:

Command
$ npm install --save @eventvisor/sdk

API

See full API docs in JavaScript SDK page.

Browser support

Eventvisor targets current evergreen Chrome, Edge, Firefox, and Safari releases. Automated browser checks run against Chromium for the vanilla and React examples. The core SDK does not require DOM APIs, so the same package also runs in Node.js.

Some modules have additional platform requirements:

CapabilityUsed byFallback
fetchHTTP and Beacon fallback deliveryPass a compatible fetch implementation
navigator.sendBeaconBeacon delivery during page exitKeepalive fetch
crypto.getRandomValuesUUID moduleA non-cryptographic UUID fallback

Script loading, local storage, and vendor modules require the corresponding browser APIs and should only be registered in environments where those APIs exist.

Deterministic bucketing includes its own UTF-8 encoding and does not require a TextEncoder polyfill.

Previous
JavaScript