Category : real-time

I don’t understand where it is blocking, if I replace the update with create it works or if I remove the broadcast the update works how to update with the braodcast ?? thank you call to a member function load() on bool public function SendToMarket(Request $request, $id){ $card = auth()->user()->cards()->findOrFail($id)->update([ ‘market_id’ => $request["_market"], ‘borderStyle_id’ => ..

Read more

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