diff --git a/op-service/client/ws.go b/op-service/client/ws.go index 1f87556033046..b432d656fe656 100644 --- a/op-service/client/ws.go +++ b/op-service/client/ws.go @@ -96,6 +96,7 @@ func DialWS(ctx context.Context, cfg WSConfig) (*WSClient, error) { } return nil, err } + conn.SetReadLimit(1024 * 1024 * 10) // Set the read limit per-message to 10MB if cfg.Log != nil { cfg.Log.Info("Websocket connection established", "url", cfg.URL)