国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

<span id="0aygp"></span><center id="0aygp"></center>
  • <i id="0aygp"></i>
    <li id="0aygp"><xmp id="0aygp">
  • <label id="0aygp"></label>

    <label id="0aygp"></label>
  • <label id="0aygp"></label>
    <pre id="0aygp"><noframes id="0aygp"><thead id="0aygp"></thead>

    webman 運行多個gateway-worker的問題,第一個我裝的插件,通過配置使用.那第二個怎么配置呢?通過框架啟動的方式是不是只能用一個,另一個單獨啟動(已解決)

    Gin

    把 config/plugin/gatewaw-worker 復(fù)制一份方同級目錄 改改端口配置及 Events位置即可

    1165 3 0
    3個回答

    不敗少龍

    要配置多個協(xié)議嗎?還是要用一個event.php這個文件

    • Gin 2022-10-10

      看我下方截圖, 改的地方圈住了

    Gin

    截圖

    不敗少龍
    return [
        'gateway' => [
            'handler'     => Gateway::class,
            'listen'      => 'websocket://0.0.0.0:7272',
            'count'       => cpu_count(),
            'reloadable'  => false,
            'constructor' => ['config' => [
                'lanIp'           => '127.0.0.1',
                'startPort'       => 2300,
                'pingInterval'    => 25,
                'pingData'        => '{"type":"ping"}',
                'registerAddress' => '127.0.0.1:1236',
                'onConnect'       => function(){},
            ]]
        ],
        'worker' => [
            'handler'     => BusinessWorker::class,
            'count'       => cpu_count()*2,
            'constructor' => ['config' => [
                'eventHandler'    => plugin\webman\gateway\Events::class,
                'name'            => 'ChatBusinessWorker',
                'registerAddress' => '127.0.0.1:1236',
            ]]
        ],
        'register' => [
            'handler'     => Register::class,
            'listen'      => 'text://0.0.0.0:1236',
            'count'       => 1, // Must be 1
            'constructor' => []
        ],
        'gatewayTCP' => [
            'handler'     => Gateway::class,
            'listen'      => 'tcp://0.0.0.0:7070',
            'count'       => cpu_count(),
            'reloadable'  => false,
            'constructor' => ['config' => [
                'lanIp'           => '127.0.0.1',
                'startPort'       => 4100,
                'pingInterval'    => 25,
                'pingData'        => '{"type":"ping"}',
                'registerAddress' => '127.0.0.1:1236',
                'onConnect'       => function(){},
            ]]
        ],
    ];
    • Gin 2022-10-10

      你這樣也可以, 共用一個Events.php 如果業(yè)務(wù)邏輯沒啥交集的話, 單獨處理我感覺比較好

    年代過于久遠(yuǎn),無法發(fā)表回答
    ??