123
This commit is contained in:
@@ -67,7 +67,7 @@ public class Agora {
|
||||
String url = "https://api.sd-rtn.com/dev/v1/kicking-rule";
|
||||
Map<String,Object> bodyData = new HashMap<>();
|
||||
bodyData.put("appid",agoraProperties.getAppId());
|
||||
bodyData.put("cname",roomId);
|
||||
bodyData.put("cname",roomId+"");
|
||||
bodyData.put("time",0);
|
||||
bodyData.put("privileges", Collections.singletonList("join_channel"));
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
|
||||
@@ -130,7 +130,7 @@ public class RoomWebSocketHandler extends AbstractWebSocketHandler {
|
||||
public void afterConnectionClosed(WebSocketSession session, CloseStatus status) {
|
||||
String token = String.valueOf(session.getAttributes().get("token"));
|
||||
// TODO 连接关闭 是否要删除fd的关系
|
||||
WebSocketSessionHolder.removeSession(token);
|
||||
WebSocketSessionHolder.removeSession(session.getId());
|
||||
log.info("[disconnect] sessionId: {},token:{}", session.getId(), token);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user