increase websocket message limit to an absurd of 33MB.
This commit is contained in:
@@ -22,7 +22,7 @@ func NewConnection(ctx context.Context, url string, requestHeader http.Header, t
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
c.SetReadLimit(262144) // this should be enough for contact lists of over 2000 people
|
c.SetReadLimit(2 << 24) // 33MB
|
||||||
|
|
||||||
return &Connection{
|
return &Connection{
|
||||||
conn: c,
|
conn: c,
|
||||||
|
|||||||
Reference in New Issue
Block a user