Thanks. You're right.

After posting, I kept looking and got as far as starting to read about AJAX 
XMLHttpRequest, at which point I decided that templates wouldn't be a 
particularly pleasant way to accomplish my task.

On Thursday, May 2, 2019 at 2:45:33 AM UTC-4, amn...@gmail.com wrote:
>
> 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