鍍金池/ 問(wèn)答/HTML5  HTML/ nodejs websocket ws模塊實(shí)現(xiàn) 私聊怎么實(shí)現(xiàn)?

nodejs websocket ws模塊實(shí)現(xiàn) 私聊怎么實(shí)現(xiàn)?

nodejs websocket ws模塊實(shí)現(xiàn) 私聊怎么實(shí)現(xiàn)?

回答
編輯回答
陌上花

我也頭疼這個(gè)問(wèn)題,就一個(gè)取CLIENTS接口的事,居然好像沒(méi)有,,,

2018年6月5日 13:55
編輯回答
陌顏

給每個(gè)用戶一個(gè)標(biāo)識(shí)id,私聊的時(shí)候,找到對(duì)應(yīng)用戶發(fā)消息就好了

2018年4月13日 00:08