1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12:00
appwrite/app/realtime.php
2021-06-16 11:09:12 +02:00

15 lines
320 B
PHP

<?php
use Appwrite\Realtime\Server;
use Utopia\App;
require_once __DIR__ . '/init.php';
Swoole\Runtime::enableCoroutine(SWOOLE_HOOK_ALL);
$config = [
'package_max_length' => 64000 // Default maximum Package Size (64kb)
];
$realtimeServer = new Server($register, port: App::getEnv('PORT', 80), config: $config);