I need a way where I can send a request to server and get immediate response but I need to create long excel file in background when the background job is finished the created file should be downloaded automatically. I have follow this but here the file is being generated at client side I want to create the file on server side and can send via action cable the rest of things are same.
I solved this by sending a new request after creating file to download where I send file in response and after that I remove file from system