websocket icon indicating copy to clipboard operation
websocket copied to clipboard

How to send the message to the client every second?

Open jzyzxx opened this issue 3 years ago • 2 comments

How to send the message to the client every second?Is there any demos or document?

jzyzxx avatar Jan 25 '22 10:01 jzyzxx

would suggest that you create a loop in a go function, where a sleep of one second is inside and which then sends the client a message every time

ReneWerner87 avatar Jan 25 '22 12:01 ReneWerner87