Auto refresh template

Hello,
I am receiving data using rabbitmq and I have to show the data and automatically refresh. How to auto refresh every 2 seconds the template ?

You are receiving data on the server, but You want your client to refresh, not really the template.

You have many option to do so, like javascript set interval to reload the page.

I would use websocket to push (broadcast) data to the client, and so the client could react on data receive.

1 Like