@aghoz/react
v0.4.3
Published
React hooks for Aghoz edge event streams — useTopic, useTopicReducer and a provider that reports replay gaps. Replaces refetchInterval polling.
Maintainers
Readme
@aghoz/react
React provider and hooks: useTopic, useTopicReducer, useConnectionState.
npm install @aghoz/reactRuns in any browser with fetch and ReadableStream, and in Node 22+. It talks
to an aghoz hub, which is Node.js only for now — there is no server adapter for
another language yet. Cross-origin clients support cookie credentials and dynamic
headers that are evaluated again on reconnect; see the integration guide.
Full documentation, the integration guides and the wire protocol live in the monorepo: https://github.com/akosidencio/aghoz
License
MIT OR Apache-2.0, at your option.
