trying again.

This commit is contained in:
ShadowEO
2016-05-31 16:11:11 -04:00
parent c8884d3f5b
commit f9dd46dfd4

View File

@@ -154,8 +154,9 @@ class InputDeviceServices {
$input_client = new React\SocketClient\Connector($loop, $dns);
$input_client->create($IP, $PORT)->then(function (React\Stream\Stream $stream) use ($IP, $PORT) {
LogEcho("Connected to event server on: ".$IP. ":". $PORT,"INPUTC");
global $stream;
$stream = $stream;
$GLOBALS['stream'] = &$stream;
$stream->on('data', function($data) {
global $input_client_process;
#if(defined("DEBUG")) LogEcho($data, "INPUTC");