Hi,

Socket.io would definetly get your job done but it might be overblown as it 
requires components on the client as well as on the server-side. I suggest to 
take a step back and have a look at the general requirements of your 
application:

- Is a bidirectional realtime-channel required or Is the communication mostly 
unidirectional from server to client?
- what kind of data will be sent? A binary stream or are simple text-messages 
(e.g. notifcations) good enough?

If both questions can be answered with 'yes' I would rather have look at 
Server-sent events. They are basically just a special form of HTTP-message and 
can be therefore implemented with every simple http-server without any 
additional modules. A further reading on Server-sent events with a short 
tutorial and also links to polyfils for older browsers (no flash required) can 
be found here:

http://html5doctor.com/server-sent-events/

Best regards
Andreas  
  
Am 03.09.2013 um 17:10 schrieb thron7 <[email protected]>:

> 
> On 09/03/2013 03:08 PM, matteomasina wrote:
>> Hi, I'm just developing an application, that uses communication with php
>> backend to get some system informations.
>> Everything working well, but to get the Qooxdoo fronted update, I'm using a
>> timer sending request to the php backend any tot seconds;
>> I would like to improve this so I had the idea to use the socket, and to
>> fire an update event on qooxdoo frontend, so that application will be
>> updated only when there is something new to show.
>> 
>> Have you got any idea where to start to deploy this ? I have read a lot of
>> post where the arguements are similar, but I haven't find nothing from where
>> to start, or any example to view.
>> 
>> Can you help me or send some feedback if anyone has already tried this
>> solution ?
> 
> There was one user using qooxdoo together with web sockets [1], but he 
> didn't disclose much of how he did it. But it should be straight 
> forward, just use the HTML5 socket API in e.g. a method of one of your 
> application classes. Examples for web sockets abound, e.g. [2][3].
> 
> 
> T.
> 
> [1] 
> http://qooxdoo.678.n2.nabble.com/html5-question-about-websocket-usage-td5569725.html
> [2] http://www.websocket.org/demos.html
> [3] http://html5demos.com/web-socket#view-source
> 
> 
> 
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to