https://laravel.com/docs/5.7/broadcasting#introduction
Do not wonder that
Laravel socket means on the following:
1. Only over a Web socket.
2. Only between your server-side code and your client-side JavaScript application.
siurely on the following:
1. Broadcasting
2. Not having any other sockets bascically but database connection.
Introduction
In many modern web applications, WebSockets are used to implement realtime, live-updating user interfaces. When some data is updated on the server, a message is typically sent over a WebSocket connection to be handled by the client. This provides a more robust, efficient alternative to continually polling your application for changes.
To assist you in building these types of applications, Laravel makes it easy to "broadcast" your events over a WebSocket connection. Broadcasting your Laravel events allows you to share the same event names between your server-side code and your client-side JavaScript application.
Before diving into event broadcasting, make sure you have read all of the documentation regarding Laravel events and listeners.