Archive

Posts Tagged ‘Javascript’

HTML 5 – Websocket Chat Demo

October 25th, 2010 23 comments

The HTML 5 initiative contains a draft spec for WebSockets which allow a browser to establish a full-duplex, bi-directional communication channel over a single TCP socket. This allows web developers to establish real time two way communications with a server using simple javascript without resorting to Flash, Java, ajax long polling, comet, forever iframe, or other current workarounds. Here I’ve written a simple browser chat using WebSockets for the client and PHP for the server.

Read more…
Categories: HTML 5 Tags: , , ,