Devtools Event Client

Create typed EventClient for a library. Define event maps with typed payloads, pluginId auto-prepend namespacing, emit()/on()/onAll()/onAllPluginEvents() API. Connection lifecycle (5 retries, 300ms), event queuing, enabled/disabled state, SSR fallbacks, singleton pattern. Unique pluginId requirement to avoid event collisions.

TanStack 508e190 10.3 KB Updated

File contents

tanstack/devtools/tree/main/packages/event-bus-client/skills/devtools-event-client commit 508e190e2f

Frequently asked questions

npx skillmds@latest add tanstack/devtools-event-client