简体   繁体   中英

How to make sure server keeps connection with client

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!

使用setInterval()调用使用ajax的函数

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM