Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: Automatically doing something if logged in Date: Tue, 23 Feb 2016 08:24:09 +0100 Lines: 28 Message-ID: <56CC0919.8030500@arnowelzel.de> References: <1b712b26-1665-45f9-9017-1dcf9e8bfbcb@googlegroups.com> <10712164.vGqmpjOXJh@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net bJJq0zV45nEOA16qG1xL4AMBhX6juDRDAs5tEdw2sUiqUs7mXg Cancel-Lock: sha1:wDUtXOezbdu7s9HCH0eHo5rEM6E= In-Reply-To: <10712164.vGqmpjOXJh@PointedEars.de> Xref: csiph.com comp.lang.php:16599 Thomas 'PointedEars' Lahn schrieb am 2016-02-22 um 22:25: [...] > Therefore, one should take into consideration that client-side support for > WebSocket is still experimental [1] (and had been disabled in Firefox by > default from version 4 to 23 inclusive [2]), and it might not be feasible Yes, it is experimental. But at least since May 2014, when I created my WebSocket example at , all major browsers (Firefox, Chrome, Internet Explorer and even most mobile browsers) support it. Also see > to use a framework for PHP like Ratchet [3] on that server or with that > forum application. So it is better to use XMLHttpRequest [4] for the time > being (XML does not have to be used in the HTTP messages, JSON is more > lightweight), and pull the server-side application for updates (GET) e.g. > every 5 seconds. ACK. XHR is easier to implement. -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de http://fahrradzukunft.de