To a further investigation, if I use a PuTTY to add a message, then my
Client receives the messages as:
<script>ch("ctrl", 0);</script>
Meteor.process(0,"ctrl",{rows:[{id:1001,data:"100","A Time to
Kill","John Grisham","12.99","1","05/01
/1998"]}]});
For some reason the ADDMESSAGE from the php script I use, never reach
the Meteor's 4671 port, or something else happened.
Into the php script I copied the code from a sample of yours I found
in the Meteor's site and it is as:
if (!is_resource($op) or feof($op) or ($haswritten and !$buf)) {
echo "Reconnecting to Meteor\n";
if (!($op = fsockopen("127.0.0.1", 4671, $errno, $errstr, 5))) {
echo "Meteor not responding\n";
sleep(5);
continue;
}
socket_set_blocking($op,false);
}
$haswritten = false;
$buf = "";
$msg="{rows:[{id:1001,data:"
.'\"100\",\"A Time to Kill\",\"John Grisham\",\"12.99\",\"1\",
\"05/01/1998\"]}]}';
$out = "ADDMESSAGE ".$ch_ctrl." ".$msg;
$haswritten=true;
fwrite($op, $out);
Thanks in advance,
pilot