title: Multiple HTML5 WebSocket Connection
body: <p>Is it possible to connect to multiple html5 websocket connections ? 
  As i want to have one websocket connection for read and other websocket connection for write to socket.
  I want to open at the same point of time with different connection ids.</p>
  
  <p>For example:</p>
  
  <pre><code>$(document).ready(function () {
      conn = {}, window.WebSocket = window.WebSocket || window.MozWebSocket;     
      connection1();
  });
  
  function connection1() {
  
  // uses global 'conn' object
  if (conn.readyState === undefined || conn.readyState &gt; 1) {
  
  conn1 = new WebSocket('ws://ip1:8101');
  conn2 = new WebSocket('ws://ip1:8102');
  
  //connection open 
  conn1.onopen = function () {
  conn1.send("Connection1 Established Confirmation");
  };
  
  conn2.onopen = function () {
  conn2.send("Connection2 Established Confirmation");
  };
  }
  </code></pre>