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