1.0.1 • Published 4 years ago

seges v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Usage

  1. Install

npm install seges

  1. Import
import {SegesClient} from 'seges';
  1. Configure
const config = {
  "baseUrl": "https://dev.seges.app",
  "apiToken": "from backend",
  "deviceExternalId": "from backend",
  "maxQueueSize": 1000,
  "sendBatchSize": 50,
  "sendIntervalSeconds": 30
}
SegesClient.configure(config)
  1. Send Events
SegesClient.emit('screen.view', {"screen.name": "home"})