websocket changes

This commit is contained in:
yuri
2019-02-11 16:50:20 +02:00
parent d5dc0fa2e6
commit 2dd8d8b442
4 changed files with 152 additions and 8 deletions
+3 -2
View File
@@ -33,11 +33,12 @@ include "bootstrap.php";
$app = new \Espo\Core\Application();
$categoryList = array_keys($app->getContainer()->get('metadata')->get(['app', 'webSocket', 'categories'], []));
$categoriesData = $app->getContainer()->get('metadata')->get(['app', 'webSocket', 'categories'], []);
$phpExecutablePath = $app->getContainer()->get('config')->get('phpExecutablePath');
$loop = \React\EventLoop\Factory::create();
$pusher = new \Espo\Core\WebSocket\Pusher($categoryList, $phpExecutablePath);
$pusher = new \Espo\Core\WebSocket\Pusher($categoriesData, $phpExecutablePath);
$context = new \React\ZMQ\Context($loop);
$pull = $context->getSocket(\ZMQ::SOCKET_PULL);