zhoudw
2022-03-16 97071468ac2e837e41f14bc9230cef46fd2bdbce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
 
declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
use Hyperf\HttpServer\Router\Router;
 
Router::addServer('ws', function () {
    Router::get('/', App\Controller\WebsocketController::class);
});