rename channel for websocket
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user