Hi, It's not that difficult actually.
If your application must be cross-browser compatible (w/ IE6+ for instance), this package will be useful for your qooxdoo app: https://github.com/gimite/web-socket-js (flash fallback). There are other different implementations (based on ActiveX htmlfile etc...) but considering Flash is very common, I'm OK with it. In the example, you can see there is the following code. <pre> ws.onmessage = function(e) { // Receives a message. alert(e.data); }; </pre> In this function, you can manage how to update your qooxdoo widgets. For the server, there are tons of projects available on github too, like this one for instance: https://github.com/nicokaiser/php-websocket Requirements are in general: * CLI and set_time_limit access * php_sockets support * at least a special communication port open between the server and the client (antivirus and firewall softwares may alter or block the process). What you need to remember is that there was a lot of "draft releases" of the websocket protocol (so different versions of the "language"). It implies that your php server script and your browser must speak the same language too. So, the best is to force the browser to use the flash version rather than the native one depending on the websocket version supported. Also I recommend only passing "small messages" between clients and not big json datasets for instance. For instance, Someone update the client ID=6783 in a CRM application. A message is then generated {model:"clients", action:"update", targetId:6783, data:{address:"Qooxdoo Street, 45"}} and sent to the websocket server. The server then propagates the infos to the other clients and you can update the client's page. Voilà, I hope it helps a bit. Feel free to ask questions if necessary. Best Regards, Benoît. -- View this message in context: http://qooxdoo.678.n2.nabble.com/how-to-use-or-integrate-socket-in-qooxdoo-tp7584526p7584530.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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
