Category : real-time

I use lumen i want to make function do deleting from database at and same time i want to call event for realtime but when i call brodcast delete is not working but when uncomment brodcast delete is working function: ┬ápublic function deleteProductFromBascket() { try { $basket = BasketProduct::where(‘product_id’, ‘=’, $this->request->input(‘product_id’)) ->where(‘basket_id’, ‘=’, $this->request->input(‘basket_id’))->first(); if ..

Read more

I want to create multi events in socket io with redis this is my code *** var redisClient = redis.createClient(6379, "127.0.0.1"); redisClient.on(‘connect’, function() { console.log(‘we are connected with redis server’) }); redisClient.subscribe(‘message’,’call’,’status’); redisClient.on("message", function(channel, message) { var data = JSON.parse(message); console.log("new message in queue " + "channel : " + channel + " reciever: " ..

Read more