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