onMessage = function($connection, $data){ $data=bin2hex($data); echo($data); echo "\n"; echo(substr($data,-8,4)); $connection->send('get'); }; Worker::runAll();