1
0
Fork 0
mirror of synced 2024-09-19 19:07:21 +12:00

realtime connection

This commit is contained in:
shimon 2024-09-03 12:10:40 +03:00
parent 06e6df3ca1
commit c99db70d5d

View file

@ -6,6 +6,7 @@ use InvalidArgumentException;
use Utopia\Database\Document;
use Utopia\Queue\Client;
use Utopia\Queue\Connection;
use Utopia\System\System;
class Event
{
@ -55,6 +56,7 @@ class Event
protected ?Document $project = null;
protected ?Document $user = null;
protected bool $paused = false;
protected string $region = '';
/**
* @param Connection $connection
@ -62,6 +64,13 @@ class Event
*/
public function __construct(protected Connection $connection)
{
$region = System::getEnv('_APP_REGION', 'default');
}
public function getRegion(): string
{
return $this->region;
}
/**