@Aop("redis")
public void onMessage(String channel, String message) {
for(String uu32 : jedis().hkeys(channel)) {
log.debug("uu32 ================= " + uu32+" channel="+channel);
NutzbookWsStringHandler handler = _sessions.get(uu32);
if (handler == null)
continue;
Session session = handler.getSession();
if (!session.isOpen()) {
continue;
}
log.debug("aaaaaaaaaa ================= " + uu32+" channel="+channel);
session.getAsyncRemote().sendText(message);
};
}
问答
用websocket实现的消息提示,在Android和iOS上也能收到吗?
标签:
websocket
添加回复
请先登陆