package
0.4.12
Repository: https://github.com/wechaty/go-wechaty.git
Documentation: pkg.go.dev

# Functions

AddListener is an alias for .On(eventName, listener).
Clear removes all events and all listeners, restores Events to an empty value.
Emit fires a particular event, Synchronously calls each of the listeners registered for the event named eventName, in the order they were registered, passing the supplied arguments to each.
EventNames returns an array listing the events for which the emitter has registered listeners.
GetMaxListeners returns the max listeners for this emitter see SetMaxListeners.
Len returns the length of all registered events.
ListenerCount returns the length of all registered listeners to a particular event.
Listeners returns a copy of the array of listeners for the event named eventName.
New returns a new, empty, EventEmitter.
On registers a particular listener for an event, func receiver parameter(s) is/are optional.
Once adds a one time listener function for the event named eventName.
RemoveAllListeners removes all listeners, or those of the specified eventName.
SetMaxListeners obviously this function allows the MaxListeners to be decrease or increase.

# Constants

DefaultMaxListeners is the number of max listeners per event default EventEmitters will print a warning if more than x listeners are added to it.
EnableWarning prints a warning when trying to add an event which it's len is equal to the maxListeners Defaults to false, which means it does not prints a warning.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author