From 1f36d7a9f192827f1560da0c65d500a3262d7011 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 12 Feb 2025 15:41:52 -0300 Subject: [PATCH] increase websocket message limit to an absurd of 33MB. --- connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection.go b/connection.go index fe60386..d31ac1c 100644 --- a/connection.go +++ b/connection.go @@ -22,7 +22,7 @@ func NewConnection(ctx context.Context, url string, requestHeader http.Header, t return nil, err } - c.SetReadLimit(262144) // this should be enough for contact lists of over 2000 people + c.SetReadLimit(2 << 24) // 33MB return &Connection{ conn: c,