|
@@ -51,7 +51,7 @@ public class WebSocketServer {
|
|
@OnOpen
|
|
@OnOpen
|
|
public void onOpen(Session session, @PathParam("uuid") String id) {
|
|
public void onOpen(Session session, @PathParam("uuid") String id) {
|
|
this.sid = UUID.randomUUID().toString();
|
|
this.sid = UUID.randomUUID().toString();
|
|
- redisService.deleteObject(id );
|
|
|
|
|
|
+ redisService.deleteObject(id);
|
|
this.id = id;
|
|
this.id = id;
|
|
clients.put(this.sid, session);
|
|
clients.put(this.sid, session);
|
|
//判断该用户是否存在会话信息,不存在则添加
|
|
//判断该用户是否存在会话信息,不存在则添加
|