Somebody had to do it
So here is a quick hack to implement websockets in php.
As of Dec/09 the only browser that supports websockets is Google Chrome.
Get the developers release from here Google Chrome Dev Channel
Hurry up Firefox and Safari, you're late to the party!
There is a new way to store information on the client side besides cookies.
Welcome to local storage.
Local storage was designed to let you save bits of information in the form of key:value pairs, but here we will try to store collections to make local storage more useful for offline storage, more like a local database.