Please help me clear up some confusion.
Laravel allows communication with socket.io by having you set up redis:
https://laravel.com/docs/5.4/broadcasting#configuration
To my understanding Redis simply holds the data in memory something similar to memcached? This allows third party software like socket.io to pick up the data. Is this really websocket behaviour though?
I know that you can also do something like this in PHP:
$address = 'localhost';
$port = 5600;
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
socket_connect($socket, $address, $port);
Why wouldn't they choose to something above instead of having you set up Redis? There is probably a good answer to this but I don't have that much experience with either Redis or websockets.
Any information on this would be appreciated.