mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-03-17 21:32:55 +01:00
12 lines
324 B
Go
12 lines
324 B
Go
package khatru
|
|
|
|
import (
|
|
"github.com/nbd-wtf/go-nostr"
|
|
)
|
|
|
|
// BroadcastEvent emits an event to all listeners whose filters' match, skipping all filters and actions
|
|
// it also doesn't attempt to store the event or trigger any reactions or callbacks
|
|
func (rl *Relay) BroadcastEvent(evt *nostr.Event) {
|
|
notifyListeners(evt)
|
|
}
|