1. 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');


     



    ... (Read Full Article)

    Related Articles

Login to comment.

 
Home All Articles Entities Quotes Comments Login Register Powered by HiveFire