https://metacpan.org/pod/Mojo::IOLoop#recurring
|# Perform operation every 5 seconds|
|Mojo::IOLoop->recurring(||5| |=> ||sub| |{|
| ... do it here|
|});|
Hi,
I have a mojo web-app that connects to a mysql DB and renders some
data in the browser
Now, I want to have something like push messages:
- if I manually change some value in a table I want to make it visible
in the browser without
Basically I don't know how to query the DB in a cyclic way, maybe
Mojo::IOLoop?
and then after I get the data, how should I send it to the client - is
it with websockets?
Can somebody point me in the right direction?
Thanks,
Andrei
--
You received this message because you are subscribed to the Google
Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.