Hacker News new | ask | show | jobs
by bearjaws 3145 days ago
OP lists websockets, a feature PHP cannot implement well.

(and no ratchet, php-websocket do not count)

2 comments

Well, to be honest if you want to use websockets, you better do that part in Node.js, Elixir or Go. The creator of Juggernaut, which was one of the most popular websocket library for Rails, ended up porting to Node.js until he said that people should stop using websockets and rely on Server Sent Events instead.

https://www.html5rocks.com/en/tutorials/eventsource/basics/

Considering there is absolutely no IE or Edge support for SSE, it seems like a non-starter for a general website.

https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...

If by "websockets" you mean "notify a web client immediately when a server side event occurs", then PHP + Laravel + Pusher is a mature solution for this.