appwrite/app/realtime.php

15 lines
320 B
PHP
Raw Normal View History

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