Looping through a file processing, want to provide progress

I'm trying to parse a .csv, which I can do fine. However, it's writing the data to a table, and it can take a couple of minutes to process. I want to provide an updating count, progress bar, or both, while the file is being processed.

Years ago, I did something like this with web sockets, but I don't think that's done here yet. Are there other options?

Thanks, John.

You could potentially use a third party service like pusher to send out updates on processing status.