rename channel for websocket

This commit is contained in:
aungthetkhaing
2025-06-02 15:51:42 +06:30
parent 68dadf9959
commit 729e1fbaa1

View File

@@ -332,13 +332,13 @@ $(document).ready(function() {
const subscription = cable.subscriptions.create( const subscription = cable.subscriptions.create(
{ {
channel: "TestChannel", channel: "NagatoChannel",
receipt_no: receiptNo receipt_no: receiptNo
}, },
{ {
connected() { connected() {
console.log("Nagato channel connected"); console.log("Nagato channel connected");
fallbackTimeout = setTimeout(checkPaymentStatus, 60000); fallbackTimeout = setTimeout(checkPaymentStatus, 30000);
}, },
received() { received() {
@@ -351,7 +351,7 @@ $(document).ready(function() {
disconnected() { disconnected() {
console.log("Nagato channel disconnected"); console.log("Nagato channel disconnected");
fallbackTimeout = setTimeout(checkPaymentStatus, 60000); fallbackTimeout = setTimeout(checkPaymentStatus, 30000);
} }
} }
); );