SDK
SDK Golang v3.x
2

AddListener #

Adds a channel at the end of list of registered channels for that event. Whenever an event is triggered, registered channels are fed in the order they were registered.

Arguments #

AddListener(event int, channel chan<- interface{})

ArgumentTypeDescription
event
int
Event constant from the event package
channel
channel
Event payload channel