- WIP changed REQ/REP Socket config to PUSH/PULL Socket config

This commit is contained in:
Exodus4D
2017-01-19 20:33:01 +01:00
parent 5671aa170d
commit 2d6e56500c
2 changed files with 4 additions and 2 deletions

View File

@@ -388,7 +388,8 @@ class MapUpdate implements MessageComponentInterface {
$response = $this->deleteMapId($task, $load);
break;
case 'healthCheck':
$response = 1;
$this->log('Health');
$response = 'OK';
break;
}

View File

@@ -34,7 +34,8 @@ class WebSockets {
// Listen for the web server to make a ZeroMQ push after an ajax request
$context = new React\ZMQ\Context($loop);
$pull = $context->getSocket(\ZMQ::SOCKET_REP);
//$pull = $context->getSocket(\ZMQ::SOCKET_REP);
$pull = $context->getSocket(\ZMQ::SOCKET_PULL);
// Binding to 127.0.0.1 means, the only client that can connect is itself
$pull->bind( $this->dns );