consumer service

This commit is contained in:
CHIEFSOFT\ameye
2024-07-09 13:18:07 -04:00
parent 9ca5bd888f
commit 0b228735c9
5 changed files with 44 additions and 5 deletions
+2 -5
View File
@@ -30,17 +30,14 @@ routes(app);
// https://github.com/lemoncode21/nodejs-kafka.git
//eventInterest
kafka.consume("FLUTTER_PAYMENT_RECEIVED", (value) => {
//txRef
console.log("📨 Receive message xxxx: ", value);
var obj = phpUnserialize(value);
console.log(obj);
console.log("📨 Receive message yyyy: ", obj.txRef);
});
app.listen(port, "0.0.0.0", function() {