# 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.

```swift
func emit(_ name: String, _ payload: [String : Any])
```
