Skip to content

Commit

Permalink
Ignore empty messages
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperMalachowski committed Feb 25, 2024
1 parent 5ce4eea commit 7b1090d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ func (a *App) Connect(address string) string {
for {
message := <-a.client.ReadChan

if message == "" {
continue
}

runtime.LogInfo(a.ctx, fmt.Sprint(message))
runtime.EventsEmit(a.ctx, "message", message)
}
Expand Down

0 comments on commit 7b1090d

Please sign in to comment.