Archive for the ‘HTML5’ tag
HTML5 WebSockets: the demo (part 2)
For my next trick, here’s the code of the websockets demo. I’m afraid you’ll have to run it on your own machine, and you’ll need PHP5.3 but that’s all. I reckon an up to date XAMPP should probably do the trick.
To use it, read the README file, it shows how to run the server, and then you can open clients in your modern browser and see them intercommunicate.
Note: The code is very basic, so treat it kindly…
HTML5 WebSockets, very cool. (part 1)
I only found out about these at the Future of Web Design on Tuesday. I knew they existed in the spec but had never really investigated what they were or how they worked. Now I know I am excited. It seems they are to web apps what the XMLHTTPRequest was when it started to get used for AJAX. So let’s look at what they are, and then why they can be so beneficial to web development. It’s also worth pointing out at this stage that only Chrome 4+ (I think that version, I’m writing from memory) supports WebSockets natively although apparently Mozilla want to implement them in the next iteration of Firefox (they are already available with an add-on), so don’t expect to be using them in any non-specialist projects just yet.