emit(_:_:)¶
Sends an event to JS: the extension with the hook’s key gets { name, payload } in its onEvent. It is dropped
while the hook is off.
Sends an event to JS: the extension with the hook’s key gets { name, payload } in its onEvent. It is dropped
while the hook is off.