khatru: improve ephemeral ok message when handled internally.
This commit is contained in:
@@ -229,7 +229,11 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
|
||||
ok = false
|
||||
reason = "mute: no one was listening for this"
|
||||
} else {
|
||||
reason = "broadcasted to " + strconv.Itoa(n) + " listeners"
|
||||
if nil == rl.OnEphemeralEvent {
|
||||
reason = "broadcasted to " + strconv.Itoa(n)
|
||||
} else {
|
||||
reason += "handled internally"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user