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

Thorgram's avatar

Laravel Echo and Heroku

Since i'm on a shared hosting, and i need to use socket.io, i went for the free heroku for my Node.js and Socket.io.

In local env, i used Laravel Echo server to use the Event class, and many useful features.

So my question is :

Can i connect Laravel Echo to a distant socket, and if possible, how ?

Thanks !

0 likes
1 reply
martinbean's avatar

@Thorgram I don’t think a free Heroku dyno is going to cut it, as it sleeps after a period of inactivity, and you only get so many free dyno hours a month.

Please or to participate in this conversation.