websocket
websocket copied to clipboard
How to send the message to the client every second?
How to send the message to the client every second?Is there any demos or document?
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