- useCogsEvent<Connection, EventName>(connection, eventName, handleEvent): void
Type Parameters
Connection extends default<any, Record<never, never>>
EventName extends any
Parameters
handleEvent: ((value, name) => void)
- (value, name): void
Returns void
Returns void