$socket = new \HemiFrame\Lib\WebSocket\WebSocket('sender.com', 8080);
var conn = new WebSocket('ws://sender.com:8080/');
$query = 'rsync --bwlimit=20000 --delete --chmod=ugo=rwX --modify-window=5 -rlpgoD --contimeout=3600 '.$client_root.'/'.$src.' --exclude=*/en_us/client/sandbox --info=progress2 --no-i-r --exclude=*/en_us/server/sandbox '.$host.'::drive_'.$drive_letter.'/'.$path;
$proc = popen($query, 'r');
while($progress = fgets($proc, 12)) {
echo $progress;
}
pclose($proc);