Open History to see the last commit
1import { EventClient } from '@tanstack/devtools-event-client'
2β
3const serverProbeClient = new EventClient<{
4 'server-ping': { id: number; from: string }
5}>({
6 pluginId: 'event-probe',
7})
8β
9export function emitServerPing(id: number) {
10 serverProbeClient.emit('server-ping', { id, from: 'server' })
11}