improve and make nip77 api nicer so it could be better used in nak.

This commit is contained in:
fiatjaf
2025-11-12 16:27:51 -03:00
parent 43fabbeb2a
commit 98dbe7b9e9
6 changed files with 63 additions and 137 deletions

View File

@@ -365,7 +365,7 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
}
// reconcile to get the next message and return it
neg := negentropy.New(vec, 1024*1024)
neg := negentropy.New(vec, 1024*1024, false, false)
out, err := neg.Reconcile(env.Message)
if err != nil {
ws.WriteJSON(nip77.ErrorEnvelope{SubscriptionID: env.SubscriptionID, Reason: err.Error()})