title: How to use HTML5 WebSockets for Chrome Extensions
body: <p>I am trying to create a chrome extension using HTML5 WebSockets and can't get a clear example.  I have a few questions that I hope the community can answer for me in a clear and concise manner. </p>
  
  <ol>
  <li>The WebSocket Server, can that be added to an Google Chrome Extension? Either way can someone tell me exactly what is needed to make a Server or include a decent link to a clear example?</li>
  <li>When connecting to the WebSocket Server everyone always has something like ws://localhost:port number. Is the ws required or what is the point of that? I don't know if this is meant to be a file location or what. And just to make sure the IP address and port number is where your server is located and what port it's listening on right?</li>
  <li>Websites like pusher at <a href="http://www.pusher.com/" rel="noreferrer">http://www.pusher.com/</a> is that just a way to send communication between two different devices and you still need a server or does this replace a server/can this replace a server. </li>
  </ol>
  
  <p>I have done quite a bit of Google searching so its not like I don't know anything about this topic. I just don't understand all the different things and the websocket API does not give a definition of any of its functions and doesn't really explain anything about how to use it. </p>
  
  <p>Some Links I have checked out: <a href="http://dev.w3.org/html5/websockets/" rel="noreferrer">http://dev.w3.org/html5/websockets/</a> , <a href="http://jnext.org/index.html" rel="noreferrer">http://jnext.org/index.html</a> , <a href="http://www.pusher.com/" rel="noreferrer">http://www.pusher.com/</a> , <a href="http://jwebsocket.org/" rel="noreferrer">http://jwebsocket.org/</a> , <a href="http://joshuakehn.com/blog/view/2/WebSocket-Tutorial-with-Node-js" rel="noreferrer">http://joshuakehn.com/blog/view/2/WebSocket-Tutorial-with-Node-js</a></p>
  
  <p>I need something that does not need to be installed onto a computer. All server/client/coding needs to be javascript that can be placed into a chrome extension. Thank you for anyone who can help me.</p>