go ahead... be a heretic | |
PerlMonks |
Re^4: Mojolicious Websocket exampleby rkrasowski (Sexton) |
on Jun 21, 2015 at 01:39 UTC ( [id://1131317]=note: print w/replies, xml ) | Need Help?? |
Well, that would explain, now I put scripts into public directory and everything is working like a charm. Thank you Now I am trying to build an application that will let's say every second check the DB or file and if there is some new value, will send it via websocket to thebrowsers. So, I wrote a script that send a message ( date and time). I am able to send it once, but how to put it into the loop? How to check the DB every seconds or every few seconds and send that data via WS? here is the code that sends single message:
Thanks like always. Robert
In Section
Seekers of Perl Wisdom
|
|