make App exported

This commit is contained in:
Sam Lewis
2022-11-04 21:10:14 -04:00
parent 055aa04aee
commit 2575525528
8 changed files with 42 additions and 33 deletions

View File

@@ -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]