2020-10-16 20:31:09 +13:00
|
|
|
<?php
|
|
|
|
|
2021-06-14 22:48:31 +12:00
|
|
|
use Appwrite\Realtime\Server;
|
2021-06-16 21:09:12 +12:00
|
|
|
use Utopia\App;
|
2021-02-25 06:12:38 +13:00
|
|
|
|
2021-06-14 22:48:31 +12:00
|
|
|
require_once __DIR__ . '/init.php';
|
2020-10-16 20:31:09 +13:00
|
|
|
|
2020-10-20 04:09:53 +13:00
|
|
|
Swoole\Runtime::enableCoroutine(SWOOLE_HOOK_ALL);
|
2020-10-19 00:51:16 +13:00
|
|
|
|
2021-06-14 22:48:31 +12:00
|
|
|
$config = [
|
2021-03-02 04:13:10 +13:00
|
|
|
'package_max_length' => 64000 // Default maximum Package Size (64kb)
|
2021-06-14 22:48:31 +12:00
|
|
|
];
|
2020-10-16 20:31:09 +13:00
|
|
|
|
2021-06-16 21:09:12 +12:00
|
|
|
$realtimeServer = new Server($register, port: App::getEnv('PORT', 80), config: $config);
|