<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                * [ ] 本次示例以 [thinkphp5](http://www.hmoore.net/manual/thinkphp5/118003) 做示例 1. 首先在寶塔中添加站點,下載 tp5 源碼安裝進去 ![](https://img.kancloud.cn/c9/1d/c91d8b0a21522069ddb48bf6c753aad7_741x606.png) ![](https://img.kancloud.cn/50/fd/50fdfc419c9ab3e5eb7d9cb2c8fa9a6f_1554x789.png) 2. 下載 GateIm,建議使用 composer 運行 composer require xiehaohong/gateim,提示下方內容則代表已經安裝成功 若提示其他內容,則為安裝失敗,請檢測comoiser是否安裝 ~~~ // 安裝命令 composer require xiehaohong/gateim ~~~ ![](https://img.kancloud.cn/db/b4/dbb492a7cf832eda1c41b1da45676e81_1553x695.png) ![](https://img.kancloud.cn/e9/db/e9db56193f59d92f798607dc4e82a8b1_758x219.png) 3. 由于GateIm 是在 cli 命令行模式下運行的,所以需要創建自定義命令行 * 第一步,配置command.php文件,目錄在application/command.php ``` return [ 'app\index\command\GateIm', ]; ``` * 第二步,建立命令類文件,新建application/index/command/GateIm.php ``` <?php namespace app\index\command; use gateim\library\server\Swooles; use think\console\Command; use think\console\Input; use think\console\Output; class GateIm extends Command { protected function configure() { $this->setName('gateim')->setDescription('Here is the remark '); } protected function execute(Input $input, Output $output) { new Swooles(); } } ``` 4. 打開服務,出現這個信息代表運行成功 ![](https://img.kancloud.cn/2d/38/2d38d53acc22fc70a0abb223cefa11ad_1000x687.png) 5. 前端測試是否可以連接成功 websocket在線測試地址:[http://www.websocket-test.com/](http://www.websocket-test.com/) ![](https://img.kancloud.cn/26/d1/26d17ff85e798e22f538f2e28af7bb40_1536x820.png) 7. 要在項目中對連接的客戶端做如發送信息等操作,看后面調用方法中的 [【fd,uid,group_id 關系】](fd%EF%BC%8Cuid%EF%BC%8Cgroup_id%E5%85%B3%E7%B3%BB.md) [【發送操作請求】](%E5%8F%91%E9%80%81%E6%93%8D%E4%BD%9C%E8%AF%B7%E6%B1%82.md) [【提供方法】](%E6%8F%90%E4%BE%9B%E6%96%B9%E6%B3%95.md) ![](https://img.kancloud.cn/0c/ff/0cffaffcfa978ad6b71250193dd154d7_1196x590.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看