Skip to content

Commit

Permalink
Increase WS read limit to 1MB from default of 32KB
Browse files Browse the repository at this point in the history
  • Loading branch information
smweber committed Nov 23, 2023
1 parent 6068d25 commit e20d746
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/signalmeow/web/signalwebsocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ func OpenWebsocket(ctx context.Context, path string) (*websocket.Conn, *http.Res
}
urlStr := "wss://" + UrlHost + path
ws, resp, err := websocket.Dial(ctx, urlStr, opt)
ws.SetReadLimit(1 << 20) // Increase read limit to 1MB from default of 32KB
return ws, resp, err
}

Expand Down

0 comments on commit e20d746

Please sign in to comment.