HTML 5 is so cool I'm sure it will never really get here. Check out this latest proposal: WebSocket, "a full-duplex communications channel that operates over a single socket."
JavaScript:
var conn = new WebSocket("ws://www.example.com/livedemo");
conn.onopen = function(evt) { alert("Conn opened"); }
conn.onread = function(evt) { alert("Read: " + evt.data); }
conn.onclose = function(evt) { alert("Conn closed"); }
conn.send("Hello World")
Nice!
More detailed explanation.
|
JavaScript:
Nice!
- jim 7-08-2008 2:51 pm
More detailed explanation.
- jim 7-08-2008 3:59 pm