Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@streamx/streamx

streamx-xyz22ISCdeprecated0.0.45

please do not use, will be removed soon

the official streamx javascript client

stream, cloud, streamx

readme

const streamx = require('@streamx/streamx')({ apiKey: HERE_YOUR_API_KEY });

// subscribe for a topic
streamx.subscribe('my_awesome_topic', (message) => {
  console.log(JSON.stringify(message));
});

// publish a message in a topic
let message = {
  hello: 'world'
};
streamx.publish('my_awesome_topic', message);