We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5ee647 commit f25206eCopy full SHA for f25206e
peerprep-fe/src/app/(main)/match/page.tsx
@@ -14,7 +14,7 @@ export default function LoadingPage() {
14
const router = useRouter();
15
const { user } = useAuthStore();
16
const listenerInitialized = useRef(false);
17
-
+
18
// Function to consume messages from the RabbitMQ queue
19
const handleStartListening = () => {
20
const onMessageReceived = (message: any) => {
@@ -26,6 +26,7 @@ export default function LoadingPage() {
26
setMatchStatus('failed');
27
}
28
};
29
+ consumeMessageFromQueue(user?.id!, onMessageReceived);
30
31
32
useEffect(() => {
0 commit comments