New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ingrow-js-sdk

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ingrow-js-sdk

javascript SDK to using the Ingrow event streaming platform

  • 1.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by550%
Maintainers
1
Weekly downloads
 
Created
Source

JS SDK

This Javascript SDK is created by Ingrow to using the Ingrow event streaming platform. It provides the functionality of collecting and sending events to the Ingrow system and make insights based on them.

Initialize

After importing SDK, you must initialize it by giving api key and project id that you have received from Ingrow panel.

const myIngrow = new ingrow("API_KEY", "PROJECT_ID")

By default the IP of user will attached automatically but You can overwrite by sending the according IP in your your custom data.

Send Event

After initializing SDK, you can send event using sendEvent() method. You must pass stream name and custom data to sendEvent method. for example:

myIngrow.sendEvent("STREAM_NAME", {
    description: "paginate",
    event_type: "Click",
    element_type: "Button",
    time: new Date(),
})

sendEvent method will return a promise, so you can handle success or failure of event sending like other promises.

Configurations

By default the event endpoint is Ingrow's event listener endpoint. In the case of on-premises deployment, you can set an environment variable named LUNGO_ENDPOINT to change this address.

Keywords

FAQs

Package last updated on 02 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc