func (plug *PlugDJ) RegisterEvents(fn ProcessPayloadFunc, events ...Event) {
	for _, event := range events {
		plug.eventFuncs[event] = fn
	}
}
// RegisterEvents registers the function to call when the specified event(s) are encountered
// Note: only one function can be registered to a single event - it will replace any existing handler.
RegisterEvents registers the function to call when the specified event(s) are encountered
Note: only one function can be registered to a single event - it will replace any existing handler.
// RegisterEvents registers the function to call when the specified event ( s ) are encountered // Note : only one function can be registered to a single event - it will replace any existing handler .
func (plug *PlugDJ) RegisterEvents(fn ProcessPayloadFunc, events ...Event) {
	for _, event := range events {
		plug.eventFuncs[event] = fn
	}
}
func ( plug * PlugDJ ) RegisterEvents ( fn ProcessPayloadFunc , events ... Event ) { for _ , event := range events { plug . eventFuncs [ event ] = fn } }
RegisterEvents registers the function to call when the specified event(s) are encountered
Note: only one function can be registered to a single event - it will replace any existing handler.
RegisterEvents registers the function to call when the specified event ( s ) are encountered Note : only one function can be registered to a single event - it will replace any existing handler .