Send udp packet from chrome

11,594

From the linked page:

Chrome Canary now has support for raw TCP and UDP sockets in its ‘experimental’ APIs. These features are only available for extensions and, although documented, are hidden for the moment.

So, develop an extension and it should work. Actually, that article from May '12 seems to be outdated as the chrome.socket module now has lost its experimental status. For the HelloWorld, you might check out their udp sample which is linked from the official pages.

Share:
11,594

Related videos on Youtube

Tono Nam
Author by

Tono Nam

Updated on September 15, 2022

Comments

  • Tono Nam
    Tono Nam over 1 year

    Researching on the internet ( How to send udp to udp node.js server?, JavaScript WebSockets with UDP?) I have found that it is not possible to send udp packets with javascript.

    On the other hand some pages claim that chrome browser is able to do so. For example the link:

    http://blog.alexmaccaw.com/chrome-tcp-udp

    claims that google chrome is able to send udp packets. Maybe I am doing something wrong. If it is true that chrome can send udp packets I will appreciate if someone can post a hello world example. I have tried the example from the link I showed and it does not work. Maybe I am doing something wrong.

    • Bergi
      Bergi over 11 years
      From that page: "Chrome Canary now has support for raw TCP and UDP sockets in its ‘experimental’ APIs. These features are only available for extensions and, although documented, are hidden for the moment". What have you tried that did not work?
  • Venryx
    Venryx almost 5 years
    Apparently UDP sockets are not possible in extensions anymore. It was possible at one point, but they disabled it due to security concerns -- restricting it only to Chrome apps, which are being ended/phased-out now as well. :/