mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-06 03:15:14 -06:00
make App exported
This commit is contained in:
@@ -102,7 +102,7 @@ type BaseEventMsg struct {
|
||||
}
|
||||
|
||||
/* Functions */
|
||||
func callEventListeners(app *app, msg ws.ChanMsg) {
|
||||
func callEventListeners(app *App, msg ws.ChanMsg) {
|
||||
baseEventMsg := BaseEventMsg{}
|
||||
json.Unmarshal(msg.Raw, &baseEventMsg)
|
||||
listeners, ok := app.eventListeners[baseEventMsg.Event.EventType]
|
||||
|
||||
Reference in New Issue
Block a user