TanStack Event Bus is a lightweight event bus for TanStack Devtools.
npm install @tanstack/devtools-event-busThis package is still under active development and might have breaking changes in the future. Please use it with caution.
``tsx
import { ServerEventBus } from '@tanstack/devtools-event-bus/server'
// Start the server event bus
const devtoolsServer = new ServerEventBus()
devtoolsServer.start()
export { devtoolsServer }
`
`ts
import { ClientEventBus } from '@tanstack/devtools-event-bus/client'
// Start the client event bus
const devtoolsClient = new ClientEventBus()
devtoolsClient.start()
export { devtoolsClient }
``
Check out @tanstack/devtools-event-client for more information on how to create plugins for the event bus.