如附件所示,getClientIdCountByGroup() 無法使用,是方法不能使用還是代碼寫錯了?
根據(jù)手冊,getClientIdCountByGroup接口要求Gateway版本>=3.0.8
版本是3.4.2
這個是workerman版本,gatewayWorker版本在src/Gateway.php 里寫著
那這個workerman版本不能用getClientIdCountByGroup這個接口?
getClientIdCountByGroup 是GatewayWorker提供的接口,與workerman沒有關系。
那什么使用時報錯,是什么原因適成的?
你的GatewayWorker版本不支持getClientIdCountByGroup接口,去官網(wǎng)重新下載一個最新的版本就解決了
好的
是更新最新版的workerman-chat還是要換成GatewayWorker這個版本?
都行...
那我試下,謝謝了