@exbyte.io/exbyte-publisher
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Please note: key/secret for publishing is found on the UpstreamApi object, not on the Property. Properties can have many UpstreamApis.

const baseHttp = "https://localhost:5000";
const publisher = new ExbytePublisher({
  property_id: property.id,
  public_key: upstream_api_public_key,
  secret_key: upstream_api_secret_key,
  base_url: baseHttp,
});

publisher.publish(
  "topic",
  {
    event: "event_name",
    payload: "payload",
  },
  {},
  []
);

Readme

Keywords

none

Package Sidebar

Install

npm i @exbyte.io/exbyte-publisher

Weekly Downloads

1

Version

0.0.6

License

ISC

Unpacked Size

17.5 kB

Total Files

8

Last publish

Collaborators

  • jeredmasters