🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@w3bstream/sdk

Package Overview
Dependencies
Maintainers
5
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@w3bstream/sdk

``` $ pnpm i @w3bstream/sdk ```

latest
npmnpm
Version
0.1.1
Version published
Weekly downloads
10
233.33%
Maintainers
5
Weekly downloads
 
Created
Source

Installation

$ pnpm i @w3bstream/sdk

Usage

// libs/w3bstream.ts
import { Device } from '../libs/w3bstream.ts';

// new device
export const device = new Device({
  projectName: '<PROJECT_NAME>',
  w3bstreamEndpoint: 'https://devnet-staging.w3bstream.com/',
  deviceToken: '<DEVICE_TOKEN>',
});
// client.ts

const data = {
  latitude: '295661300',
  longitude: '1064685700',
  random: '78430',
  snr: 1024,
};

// send event
device.sendEvent({
  payload: data,
});

Building

Run nx build sdk to build the library.

Running unit tests

Run nx test sdk to execute the unit tests via Jest.

FAQs

Package last updated on 25 Jun 2023

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