userEvent
Send a custom user-defined event on the call. User events allow you to pass application-specific data through the RELAY event system. Other listeners on the same call can receive and react to these events.
Parameters
event
The event name or identifier.
The options type also accepts additional keys (& Record<string, unknown>), but
only the event field is extracted and sent in the RPC call.
Returns
Promise<Record<string, unknown>> — Server response confirming the event was sent.