- WIP changed REQ/REP Socket config to PUSH/PULL Socket config
This commit is contained in:
@@ -388,7 +388,8 @@ class MapUpdate implements MessageComponentInterface {
|
||||
$response = $this->deleteMapId($task, $load);
|
||||
break;
|
||||
case 'healthCheck':
|
||||
$response = 1;
|
||||
$this->log('Health');
|
||||
$response = 'OK';
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user