Simple push service every second

48 views
Skip to first unread message

mcfli...@gmail.com

unread,
Apr 7, 2016, 10:04:44 AM4/7/16
to Ratchet
Hello,

i need to create a websocket that pushes a JSON object every second to the connected clients.
Based on some database / cache values, i'm currently polling via AJAX, which is not best practice.

Instead i want to open a websocket and receive a JSON object each second. Also, when multiple clients are connected, i need to re-use the existing database / cache connection.

Which approach would be the best?

Best regards,
Stiwan
Reply all
Reply to author
Forward
0 new messages