Use a websocket.

templates would give you server side rendering which will not give you live 
updates on the web page.

Steer clear of x/net/websocket which is deprecated.
Instead use the popular gorilla/websocket or the simpler nhooyr/websocket.

On Wednesday, 1 May 2019 15:11:55 UTC+1, ThisEndUp wrote:
>
> I'm new to Go and am in the design phase of a project that will display 
> live sensor data on a web page. The data are transferred via an MQTT 
> broker. I have done such things in the past using a websocket but wonder if 
> a template would be a more appropriate method. Any thoughts?
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to