Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16599

Re: Automatically doing something if logged in

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Arno Welzel <usenet@arnowelzel.de>
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> (permalink)
References <1b712b26-1665-45f9-9017-1dcf9e8bfbcb@googlegroups.com> <dj15eeF12e3U1@mid.individual.net> <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

Show key headers only | View raw


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 <https://arnowelzel.de/tools/chat/>, all major
browsers (Firefox, Chrome, Internet Explorer and even most mobile
browsers) support it.

Also see <http://caniuse.com/#feat=websockets>

> 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

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Automatically doing something if logged in bit-naughty@hotmail.com - 2016-02-22 10:02 -0800
  Re: Automatically doing something if logged in Jerry Stuckle <jstucklex@attglobal.net> - 2016-02-22 14:04 -0500
  Re: Automatically doing something if logged in "J.O. Aho" <user@example.net> - 2016-02-22 20:21 +0100
    Re: Automatically doing something if logged in Jerry Stuckle <jstucklex@attglobal.net> - 2016-02-22 14:52 -0500
      Re: Automatically doing something if logged in "J.O. Aho" <user@example.net> - 2016-02-23 06:58 +0100
    Re: Automatically doing something if logged in Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-22 22:25 +0100
      Re: Automatically doing something if logged in "J.O. Aho" <user@example.net> - 2016-02-23 07:04 +0100
        Re: Automatically doing something if logged in Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-23 08:31 +0100
      Re: Automatically doing something if logged in Arno Welzel <usenet@arnowelzel.de> - 2016-02-23 08:24 +0100
        Re: Automatically doing something if logged in Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-23 08:46 +0100
          Re: Automatically doing something if logged in Arno Welzel <usenet@arnowelzel.de> - 2016-02-23 11:36 +0100
            Re: Automatically doing something if logged in Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-23 21:02 +0100
    Re: Automatically doing something if logged in Arno Welzel <usenet@arnowelzel.de> - 2016-02-23 08:10 +0100

csiph-web