Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

How to send the message to the client every second? #87

Open
jzyzxx opened this issue Jan 25, 2022 · 2 comments
Open

How to send the message to the client every second? #87

jzyzxx opened this issue Jan 25, 2022 · 2 comments
Labels
🤔 Question Further information is requested

Comments

@jzyzxx
Copy link

jzyzxx commented Jan 25, 2022

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

@ReneWerner87 ReneWerner87 added the 🤔 Question Further information is requested label Jan 25, 2022
@ReneWerner87
Copy link
Member

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

@idc77
Copy link

idc77 commented Feb 15, 2023

Or use time.Ticker

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🤔 Question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants