Hi, 1. SERVER
Actually, there are a lot of different possible solutions. But it mainly depends on your server. node.js is a good solution but it is not the only one (you can achieve doing it in java, python or even php). Furthermore, In my case, my client works with a let's say "semi-shared" hosting with apache, php and mysql. The good was I was able to work with ssh and php-cli in order to launch a "server script" to handle connexions, receiving and sending messages to clients. But you must care about the global memory available to run your script. At first stage, my server script performed large DB operations but it always crashed because the necessary memory was to low. So, I modified a bit the global logic and the script server no more makes CRUD operations, it only receives and send messages to clients (the CRUD ops are done via simple ajax requests). 2. CLIENT First, I downloaded gimite's websocket package to enable websocket on all browsers (it requires flash for browsers that can't manage it for now). Warning, be sure your antivirus/firewall don't block the port used for connexions because you may think it's not working. Also, Google lately reported a security issue in the last 76 draft version of the websocket protocol at handshaking level. So, it's better to use the wss:// version or use it only in a secured environment (even though this security issue is a special case). Secondly, I upgraded the remote model in order to handle add operations (using the remote model was the best option because my tables must be able to handle more than 100000 rows) and identify easily the dataChanged source operation (update, add, delete). Finally, I updated a bit the table's paneScroller class to be able to highlight some rows whenever a message is sent to a specific client (CRUD operations). The rest is details I think... Voilà, hope it helps! Best, Benoît. -- View this message in context: http://qooxdoo.678.n2.nabble.com/html5-question-about-websocket-usage-tp5569725p5871454.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
