The relay interface at https://github.com/fiatjaf/snow/blob/master/src/main/scala/Relay.scala is not very functional. It works, but I don't know how to close a relay connection and I am not sure about how to properly structure the responses in terms of Cats-Effect and fs2.
The goal of this bounty is for you to refactor that and deliver a nice API with nice tests that show how it works.
100,000 sats bounty