I think the issue might be caused by a mismatch in the userId . To avoid this, try retrieving the user ID using the method below.
 Authentication auth = SecurityContextHolder.getContext().getAuthentication();
 String userId = auth.getName();
 sendNotificationWebSocket(userId,notifica);