聊天室信息发送

This commit is contained in:
chanbook 2022-08-08 17:46:24 +08:00
parent 082aedafdf
commit b04783a3ba
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class ChatRoom {
*/ */
@OnOpen @OnOpen
public void onOpen(Session session, @PathParam("roomId") String roomId) { public void onOpen(Session session, @PathParam("roomId") String roomId) {
if (getRoomCache().createSuccess(roomId)) { if (!getRoomCache().createSuccess(roomId)) {
this.sendMessage("无此房间,拒绝连接", session); this.sendMessage("无此房间,拒绝连接", session);
return; return;
} }