fiatjaf / relayer

A Nostr relay server framework.
The Unlicense
303 stars 82 forks source link

listeners should be holded by Server. #123

Closed mattn closed 1 month ago

mattn commented 1 month ago

Note: This breaks compatibility. But this is what it should be done.

mattn commented 1 month ago

Ah, wait. BroadcastEvent and AddEvent should be an interface of Relay.

mattn commented 1 month ago

Hmm, relayer's Listeners interface is optional because the Listeners interface have to be holded by Relay interface. But I don't make sure this is best.