TCPSocket: Sockets in the browser
Michael Carter of Orbited has written about how he now likes to call Comet sockets in the browser, and has an implementation available that looks like this: PLAIN TEXT JAVASCRIPT: var conn = new TCPSocket(hostname, port) conn.onopen = function() { alert(’connection opened!’) }conn.onread = function(data) { alert(’RECEIVE: ‘ + data) }conn.onclose = function(data) { alert(’connection closed!’) } conn.send(’Hello World’); The above [...]
More: continued here

Leave a Reply
You must be logged in to post a comment.