Laracasts - Real-time Laravel with Socket.io

Posted by: sddd on 30-12-2020, 01:29
See Orignal Post @ Nulled.Org


Laracasts - Real-time Laravel with Socket.io

Genre: eLearning | MP4 | Video: AVC, 1152x720 | Audio: aac, 48 kHz
Language: English | Size: 104 MB | Duration: 4 episodes (40m) | Advanced
When we want to broadcast events on our server to the client, how exactly do we do that? Well, there's a number of ways to tackle it, including using a dedicated service like Pusher. However, in this mini-series, we'll wire everything up on our own, while leveraging Node, Redis, and Socket.io. Sound fun?
Hello Socket.io
Before we touch Laravel, let's get our feet wet in this Socket.io world. We'll build a basic chat application, while learning how to emit and listen for events.
View the source for this lesson on GitHub.
Laravel and Redis
Redis is an excellent in-memory data store. Did you know that Laravel offers support for it right out of the box? Let's figure out how to activate it so that we may publish events, and catch them from our Node server.
Node, Redis, and Socket.io
We're making great progress. Now that we have Redis working on the Laravel end, let's setup a Redis client on the Node side of things, so that we can "catch" events. This will give us the proper hook to then leverage Socket.io to alert the client of the update.
View the source for this episode on GitHub.
Broadcasting With Redis
So far, we've simply used Laravel's Redis facade to publish message (which we then catch from our Node Redis client). This time, let's create a typical event class. As you'll find, as of Laravel 5.1, we only have to implement an interface to trigger broadcasting to the client!

Download link :
(If you need these, buy and download immediately before they are delete)
Links are Interchangeable - Single Extraction - Premium is support resumable


We need your support!
Make a donation to help us stay online
        
Bitcoin (BTC)
bc1q08g9d22cxkawsjlf8etuek2pc9n2a3hs4cdrld
	
Bitcoin Cash (BCH)
qqvwexzhvgauxq2apgc4j0ewvcak6hh6lsnzmvtkem

Ethereum (ETH)
0xb55513D2c91A6e3c497621644ec99e206CDaf239

Litecoin (LTC)
ltc1qt6g2trfv9tjs4qj68sqc4uf0ukvc9jpnsyt59u

USDT (ERC20)
0xb55513D2c91A6e3c497621644ec99e206CDaf239

USDT (TRC20)
TYdPNrz7v1P9riWBWZ317oBgJueheGjATm

Dear visitor, you enter the site as unregistered member.
We recommend you to register or log in.
Information
Users of Guest are not allowed to comment this publication.