Added stderr redirection to uinput
This commit is contained in:
@@ -108,6 +108,9 @@ class InputDeviceServices {
|
||||
$client->write($output);
|
||||
}
|
||||
});
|
||||
$inputserver_ref->stderr->on('data', function($output) {
|
||||
LogEcho($output,"INPUT");
|
||||
});
|
||||
|
||||
$ResponseArray = array("response_type"=>"success",
|
||||
"response_msg"=>"Event server started on port 5055",
|
||||
@@ -127,10 +130,13 @@ class InputDeviceServices {
|
||||
//$client = new steam_socket_client('tcp://'.$IP.":".$PORT);
|
||||
//$client_connection = new React\Stream\Steam($client, $loop);
|
||||
$input_client_process = new React\ChildProcess\Process('exec /opt/uinput-mapper/input-create -C');
|
||||
$input_client_process->stderr->on('data', function ($output){
|
||||
LogEcho($output,"INPUTC");
|
||||
});
|
||||
$input_client_process->start($loop);
|
||||
$dnsResolverFactory = new React\Dns\Resolver\Factory();
|
||||
$dns = $dnsResolverFactory->createCached($IP, $loop);
|
||||
|
||||
|
||||
$input_client = new React\SocketClient\Connector($loop, $dns);
|
||||
$input_client->create($IP, $PORT)->then(function (React\Stream\Stream $stream) {
|
||||
$stream->on('data', function($data) use ($stream) {
|
||||
|
||||
Reference in New Issue
Block a user