4 ms·
OP lists websockets, a feature PHP cannot implement well. (and no ratchet, php-websocket do not count)
by bearjaws 9y ago
OP lists websockets, a feature PHP cannot implement well.
(and no ratchet, php-websocket do not count)
- aclsid 9y agoWell, 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/ https://www.html5rocks.com/en/tutorials/eventsource/basics/
- lastofus 9y agoConsidering 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_events https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...
- aclsid 9y agoThere is a polyfill for IE. https://github.com/remy/polyfills/blob/master/EventSource.js https://github.com/remy/polyfills/blob/master/EventSource.js
- deweller 9y agoIf 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.