dongping9475 2015-05-12 13:41
浏览 60

将标志发送到websocket服务器

Problem short (theoretical) : is it possible to send a flag from one php script to running php script that is used as websocket server to notice about database change?

Problem long (theoretical) : The current app is using websocket already - when user sends a new data (lets assume - message) in client.html it is sent to server server.php, aggregated and written back to the socket. Now the problem occurs: another users sends in data to json.php that does processing and insert|update database table. After that has been done the json.php should warn server.php about the DB change and server.php should send (socket write) to client.html.

Similar issues here (code almost identitcal to 1.item)

  1. PHP request to PHP Websocket
  2. Which is more efficient to send WebSocket updates with a MySQL database change
  3. Push notifications in PHP using Amazon SNS/SQS?
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 双层网络上信息-疾病传播
    • ¥50 paddlepaddle pinn
    • ¥20 idea运行测试代码报错问题
    • ¥15 网络监控:网络故障告警通知
    • ¥15 django项目运行报编码错误
    • ¥15 请问这个是什么意思?
    • ¥15 STM32驱动继电器
    • ¥15 Windows server update services
    • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
    • ¥15 模糊pid与pid仿真结果几乎一样