feat: realtime execution status

This commit is contained in:
Christy Jacob
2022-02-28 16:24:35 +04:00
parent 44af094f20
commit b4ee82ac88
5 changed files with 19 additions and 5 deletions
+1 -3
View File
@@ -307,6 +307,7 @@ class Realtime extends Adapter
break;
case strpos($event, 'functions.executions.') === 0:
if (!empty($payload->getRead())) {
$channels[] = 'console';
$channels[] = 'executions';
$channels[] = 'executions.' . $payload->getId();
$channels[] = 'functions.' . $payload->getAttribute('functionId');
@@ -314,11 +315,8 @@ class Realtime extends Adapter
}
break;
case strpos($event, 'functions.deployments.') === 0:
var_dump('received deployment event');
$channels[] = 'console';
$projectId = 'console';
$roles = ['team:' . $project->getAttribute('teamId')];
break;
}