Commit 3d869da6 authored by 刘文胜's avatar 刘文胜

11111

parent ae6ea586
...@@ -27,6 +27,11 @@ ...@@ -27,6 +27,11 @@
<artifactId>spring-boot-starter-data-jpa</artifactId> <artifactId>spring-boot-starter-data-jpa</artifactId>
<version>1.2.3.RELEASE</version> <version>1.2.3.RELEASE</version>
</dependency> </dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.2.5</version>
</dependency>
<dependency> <dependency>
<groupId>mysql</groupId> <groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId> <artifactId>mysql-connector-java</artifactId>
......
...@@ -42,6 +42,7 @@ public class IMWebSocketEndpoint { ...@@ -42,6 +42,7 @@ public class IMWebSocketEndpoint {
@OnClose @OnClose
public void handleClose(Session session){ public void handleClose(Session session){
log.info(waiter.nickName + "离线了"); log.info(waiter.nickName + "离线了");
WaiterManager.removeWaiter(waiter.id);
} }
@OnError @OnError
......
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