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)