I am trying to create a chrome extension using HTML5 WebSockets and cannot get a clear example. I have a few questions that I hope the community can answer for me in a clear and concise manner.
- Can a WebSocket server be added to the Google Chrome extension? In any case, can someone tell me what it is necessary to create a server or include a decent link to a clear example?
- When connected to a WebSocket server, everyone always has something like ws: // localhost: port number. Is ws required or what is the point? I do not know if this should be the location of the file or what. And just to make sure that the IP address and port number are where your server is located, and which port is it listening on correctly?
- Websites like pusher at http://www.pusher.com/ are just a way to send messages between two different devices, and you still need a server or replace the server / it can replace the server.
I have done quite a lot of Google searches, so it’s 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 actually does not explain anything how to use it.
Some links that I checked: http://dev.w3.org/html5/websockets/ , http://jnext.org/index.html , http://www.pusher.com/ , http: // jwebsocket .org / , http://joshuakehn.com/blog/view/2/WebSocket-Tutorial-with-Node-js
-, . // javascript, chrome. , .