Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

princeoo7's avatar

Has anyone worked with laravel, socket.io and flutter ?

i am currently learning how to build flutter app and was planning to implement the laravel and mysql as backend.

its not that hard unless the broadcast comes in. i haven't ever used broadcast in laravel projects as of yet.

while after searching i found that pusher is free for 100 connections and after that it's paid service. i tried to search a package for the flutter side but no relaible package is yet available.

while searching a pusher package for flutter, i stumble upon this package: https://github.com/kakajansh/echo

here it supports socket.io and pusher but pusher is yet under work. so socket.io was something i started looking into and found, it's a library and this package is a port of laravel echo which is free.

has anyone ever used this combination in a project ? any tutorial i can refer to make a flutter app with laravel , mysql and socket.io as to broadcast events or data.

by the way i was building a simple chatting app as of now while learning. it as firebase version in teaching but in future, laravel is something i am looking to use as a backend so need imput on the same for auth, data storage and notifications or real time app.

thank you for going through my request. have a nice day / afternoon / evening / night ahead :)

0 likes
7 replies
princeoo7's avatar

So instead of laravel echo, use laravel socket package ?

But as of now for flutter I have only seen laravel echo package been ported, will it work with your suggested package ?

desther's avatar

Laravel Websockets is drop-in replacement for Pusher service and works great with Laravel Echo (using pusher driver). However for Flutter the only thing i found is package you mention and sadly it seems abandoned. There is Pusher package which is maintained so maybe that could be used? What did you ended up using?

fylzero's avatar

+1 on Laravel WebSockets. Not only is it a free way to handle websockets... it works great and scales very well. Laracon online had a video about it... basically can support over 60k connections on only 2GB of server RAM. That level of scale would cost you $900/mo with Pusher.

Here is a simple introduction to it...

https://youtu.be/wknGvg0sTAc

26 likes

Please or to participate in this conversation.