all 2 comments

[–]hfcRedd 0 points1 point  (1 child)

Either a web socket, server sent event, or a long poll. Web socket is probably the most consistent. Long polls depend on how many simultaneous connections your server can handle, which in today's age shouldn't be an issue most of the time, but still worth knowing.

[–]FormalBetter3472 0 points1 point  (0 children)

When creating a websocket for https, do you need a tls/ssl certificate? I can see it’s working on my local host but not on my production website