shape of the data you're sending with the event.
the channel you'd like to trigger clientEvents on. Get this from useChannel or usePresenceChannel.
A memoized trigger function that will perform client events on the channel.
Generated using TypeDoc
const channel = useChannel('my-channel'); const trigger = useClientTrigger(channel) const handleClick = () => trigger('some-client-event', {});