mirror of
https://github.com/TanStack/devtools.git
synced 2026-11-16 10:49:48 +00:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
History
|
|
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| CHANGELOG.md | ||
| eslint.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.docs.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
@tanstack/devtools-event-bus
This package is still under active development and might have breaking changes in the future. Please use it with caution.
General Usage
Server Event Bus
import { ServerEventBus } from '@tanstack/devtools-event-bus/server'
// Start the server event bus
const devtoolsServer = new ServerEventBus()
devtoolsServer.start()
export { devtoolsServer }
Client Event Bus
import { ClientEventBus } from '@tanstack/devtools-event-bus/client'
// Start the client event bus
const devtoolsClient = new ClientEventBus()
devtoolsClient.start()
export { devtoolsClient }
Plugins
Check out @tanstack/devtools-event-client for more information on how to create plugins for the event bus.