|
@@ -58,9 +58,9 @@ public class WebSocket {
|
|
|
@OnClose
|
|
|
public void onClose() {
|
|
|
webSocketSet.remove(this);
|
|
|
- redisUtil.set("websocket" + userId, true, 10);
|
|
|
+ redisUtil.set("websocket" + userId, true, 5);
|
|
|
try {
|
|
|
- Thread.sleep(10000);
|
|
|
+ Thread.sleep(5000);
|
|
|
} catch (InterruptedException e) {
|
|
|
throw new RuntimeException(e);
|
|
|
}
|