Commit 35211f5f by 段启岩

加入socket.io跨域

parent 494ee8c5
......@@ -115,6 +115,7 @@ public class SocketIOServiceImpl implements SocketIOService {
@Override
public void pushMessage(String userId, String message) {
SocketIOClient client = CLIENT_MAP.get(userId);
log.info("send message to {}", client);
if (null != client) {
client.sendEvent(PUSH_EVENT, message);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment