提交用例

This commit is contained in:
luoxiang
2018-12-31 18:51:18 +08:00
parent 85f4d1a591
commit 4484b8d2af
43 changed files with 1233 additions and 0 deletions

View File

@ -23,6 +23,7 @@ public class CustomerHandler extends TextWebSocketHandler {
@Override
public void afterConnectionEstablished(WebSocketSession session) {
String username = getNameFromSession(session);
//这个方法是线程不安全的
nameAndSession.putIfAbsent(username, session);
}