#integrate real time

2 messages · Page 1 of 1 (latest)

hushed jay
#

Sorry, I would like a recommendation, I must implement a real-time chat in my application, which must also contain sending files (mostly audio), for this, what tools should I use, laravel webSockets, with pusher (not pusher the cloud app), or socket.io.

And if it's socket.io integrate it with laravel echo or create my own socket.io server with node

The project I have is made with laravel 10, react 18.2 and inertia (integration of laravel brezze --ssr).

Or should I pass my entire project to node express and socket.io? :v

wise valley
#

For socket integration i think you can use Soketi which is recommended in official laravel document.

https://laravel.com/docs/10.x/broadcasting#open-source-alternatives

for react you need some sort of implementation for listening to that socket you created and dispatch i assume you are using redux or some sort actions to update data and show on page.

I would recommend you to read this -->
https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications
https://dev.to/muratcanyuksel/using-websockets-with-react-50pi