How to create sockets in google chrome extension?

I created a small global extension for google chrome http://code.google.com/chrome/extensions/getstarted.html . I need to use sockets in an extension for peer-to-peer communication over UDP. Is there firefox Jslib equivalent in google chrome or how can we use other languages ​​in google chrome extension?

I doubt this is possible in google chrome by looking at the documentation .? Are there other ways to achieve p2p connectivity in extension?

+6
google-chrome-extension
source share
2 answers

Chrome has packet support for open socket connections . More general information here . It was also available for extensions, but it is unclear if this is still true.

The documentation indicates that only UDP is available for the type when the socket is created. However, recently (January 2012) there was a commit to add TCP support .

+3
source share

These are not web ports (these are TCP or UDP sockets):

http://developer.chrome.com/apps/socket.html

https://developers.google.com/live/shows/7320022-5001

The second link is a way to create a web server in a Chrome application.

+2
source share

All Articles