聊天室信息发送

This commit is contained in:
chanbook 2022-08-05 15:50:46 +08:00
parent 3f9cf509da
commit 2eea1f5789
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ public class ChatRoom {
*/
@OnOpen
public void onOpen(Session session, @PathParam("userId") Long userId) {
if (roomCache.isExistUser(userId)) {
if (!roomCache.isExistUser(userId)) {
sendMessage("用户不在房间中,拒绝连接", session);
return;
}