如果 用戶1向服務(wù)器發(fā)送 {user_id:2,data:'這是消息'} ,如何找到 user_id 對應(yīng)的 正在連接websocket connection_id?
用gatewayWorker吧,有綁定uid接口
可以參考這個:http://doc.workerman.net/components/channel-examples2.html