mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
realtime connection
This commit is contained in:
@@ -112,7 +112,7 @@ class Databases extends Action
|
||||
if ($attribute->isEmpty()) {
|
||||
throw new Exception('Missing attribute');
|
||||
}
|
||||
var_dump("innnn");
|
||||
|
||||
$projectId = $project->getId();
|
||||
|
||||
$events = Event::generateEvents('databases.[databaseId].collections.[collectionId].attributes.[attributeId].update', [
|
||||
@@ -632,13 +632,6 @@ class Databases extends Action
|
||||
callable $realtimeConnection
|
||||
): void {
|
||||
|
||||
var_dump([
|
||||
'sourceRegion' => $this->sourceRegion,
|
||||
'redis' => $realtimeConnection($this->sourceRegion),
|
||||
'projectId' => 'console',
|
||||
'payload' => $attribute->getArrayCopy()
|
||||
]);
|
||||
|
||||
$target = Realtime::fromPayload(
|
||||
// Pass first, most verbose event pattern
|
||||
event: $events[0],
|
||||
|
||||
Reference in New Issue
Block a user