|
@@ -21,7 +21,6 @@ public class SystemWebSocketHandler implements WebSocketHandler {
|
|
|
@Override
|
|
@Override
|
|
|
public void afterConnectionEstablished(WebSocketSession session) throws Exception {
|
|
public void afterConnectionEstablished(WebSocketSession session) throws Exception {
|
|
|
String userId = (String) session.getAttributes().get(Constants.WEBSOCKET_USERNAME);
|
|
String userId = (String) session.getAttributes().get(Constants.WEBSOCKET_USERNAME);
|
|
|
- System.out.println("userid="+userId);
|
|
|
|
|
if (userId != null) {
|
|
if (userId != null) {
|
|
|
users.put(userId, session);
|
|
users.put(userId, session);
|
|
|
LoggerUtils.debug(getClass(), "添加用户websocket:" + userId);
|
|
LoggerUtils.debug(getClass(), "添加用户websocket:" + userId);
|