How to make sure server keeps connection with client

100 Views Asked by At

I am developing a videochat application using a PHP framework, Red5 server and now.js framework for node.js. Whenever two users enter private chat, one of them is paying and the other one is receiving that amount. Now, I need to make sure that database update of the cash balance is performed every minute - if I were to use javascript to do ajax posts, how can I make sure the payee didn't somehow prevent those posts? Or should I use different approach?

Thanks!

1

There are 1 best solutions below

2
Paul Dessert On

Use setInterval() to call a function which uses ajax