go-distributed-motion-s3 icon indicating copy to clipboard operation
go-distributed-motion-s3 copied to clipboard

Move to Websocket Protocol (or Similar)

Open richbl opened this issue 8 years ago • 2 comments

DOES: Current dashboard (1.3.0) uses static HTML to display in browser. Must refresh the browser to view updated information.

SHOULD: Dashboard should update dynamically (full-duplex) in real-time (or near real-time).

richbl avatar Dec 16 '17 06:12 richbl

Using websocket (ws) protocol is too heavy for this use case (don't need duplex communication). Instead, looking at server sent events (SSE) technique that sits on HTTP. Simplex communications and lighter weight.

Some GitHub examples to consider: https://github.com/kljensen/golang-html5-sse-example and https://github.com/dustywilson/sse.

richbl avatar Jan 02 '18 18:01 richbl

Or could also just add meta tag in HTML (e.g., <meta http-equiv="refresh" content="5">)

richbl avatar May 23 '23 16:05 richbl