Client
The SDK provides both callback-based and Promise-based APIs, so you can use it with callbacks, async/await, or Observables.
The core queryhub object is a lightweight wrapper that manages the lifecycle of your event stream.
const client = new queryhub.Client( auth: 'Bearer token', retry: true, timeout: 30000 );The SDK provides both callback-based and Promise-based APIs, so you can use it with callbacks, async/await, or Observables.