Client library for Genesys Cloud streaming services (websocket/XMPP interface).
npm install genesys-cloud-streaming-clientimport StreamingClient from 'genesys-cloud-streaming-client';
const client = new StreamingClient({
host: 'wss://streaming.mypurecloud.com',
authToken: 'your-access-token',
});
await client.connect();If you're using this in a browser with a bundler like Vite or Webpack 5, you'll need polyfills for
global,events, and possiblyprocess. See the full documentation for details.
See doc/documentation.md for the full API reference, browser polyfill setup, and known issues.
Run npm install to install dependencies.
Run the tests using npm test in the command line.
Run npm run build
ESLint with the semistandard config has been added and you can run linting through the command line via npm run lint
To fix minor styling errors, run npm run lint:fix
If you can configure your editor to run linting while typing or on save, this is preferable.