Notifying the Browser via backend

Asked

Viewed 31 times

-1

So, I’m making a method that generates a pdf, but since the file is large, I thought to "warn" the browser when the file is finished. This can be done with Signalr?

thank you guys! abs

1 answer

1

Ricardo,

Signalr will be a Feature for you to establish real-time communication with the customer, but your real problem doesn’t just involve this.

With this implementation with Signalr, you need to keep in mind that the whole process: - Start asynchronous process to generate PDF - Inform the customer that the document is being generated - Control the process of PDF generation and pass the information to your implementation of Signalr for the customer to be communicated. - When communicating the client, start download process (or make available the link to download)

Signalr will be in its process only one real-time communication channel, the whole implementation is more complex than that.

There are numerous ways to build this solution, above I just put a scenario with Signalr, which I imagine is something like what you thought.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.