@exbyte.io/exbyte-publisher
v0.0.6
Published
Please note: key/secret for publishing is found on the UpstreamApi object, not on the Property. Properties can have many UpstreamApis.
Downloads
8
Readme
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",
},
{},
[]
);