From 729e1fbaa17941d96d41d1cf421f1a209b279c06 Mon Sep 17 00:00:00 2001 From: aungthetkhaing Date: Mon, 2 Jun 2025 15:51:42 +0630 Subject: [PATCH] rename channel for websocket --- app/views/foodcourt/qrpay/init.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/foodcourt/qrpay/init.html.erb b/app/views/foodcourt/qrpay/init.html.erb index 5e14eef1..9287e49c 100644 --- a/app/views/foodcourt/qrpay/init.html.erb +++ b/app/views/foodcourt/qrpay/init.html.erb @@ -332,13 +332,13 @@ $(document).ready(function() { const subscription = cable.subscriptions.create( { - channel: "TestChannel", + channel: "NagatoChannel", receipt_no: receiptNo }, { connected() { console.log("Nagato channel connected"); - fallbackTimeout = setTimeout(checkPaymentStatus, 60000); + fallbackTimeout = setTimeout(checkPaymentStatus, 30000); }, received() { @@ -351,7 +351,7 @@ $(document).ready(function() { disconnected() { console.log("Nagato channel disconnected"); - fallbackTimeout = setTimeout(checkPaymentStatus, 60000); + fallbackTimeout = setTimeout(checkPaymentStatus, 30000); } } );