Coder Social home page Coder Social logo

Comments (5)

Robbert avatar Robbert commented on May 10, 2024
"sockets": {
  "udp": {
    "bind": "*",
    "send": "*",
    "multicastMembership": ""
  }
}

The empty string value for "multicastMembership" isn't obvious at all, I had to resort to reading the C++ unit tests to find out the correct value.

The manifest.json documentation states the value requires a "host:port" value, but "*" and any other valid host:port value is regarded invalid.
https://developer.chrome.com/apps/manifest/sockets
https://chromium.googlesource.com/chromium/chromium/+/6697478358bc016fd5acffdb1401d79f405713f5/chrome/common/extensions/api/manifest_types.json

These are unit tests:
https://code.google.com/p/chromium/codesearch#chromium/src/extensions/common/api/sockets/sockets_manifest_permission_unittest.cc&q=multicastMembership&sq=package:chromium&dr=C&l=264

from chrome-extensions-samples.

beaufortfrancois avatar beaufortfrancois commented on May 10, 2024

@Robbert Thank you for your feedback.

@ikarienator It looks this sample App still uses the old chrome.socket API with the deprecated way of setting permission ;( Would you have time to upgrade this App?

@rpaquay May you update the official documentation at https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/docs/templates/articles/manifest/sockets.html so that it's more clear regarding the multicastMembership value?

from chrome-extensions-samples.

beaufortfrancois avatar beaufortfrancois commented on May 10, 2024

@Robbert The "multicastMembership" option is now shown at https://developer.chrome.com/apps/manifest/sockets

I will update soon the mutilcast sample app based on @rpaquay's work.

from chrome-extensions-samples.

beaufortfrancois avatar beaufortfrancois commented on May 10, 2024

For info, there is an issue on Chrome OS: http://crbug.com/233052.
The firewall seems to block chrome.sockets.

from chrome-extensions-samples.

beaufortfrancois avatar beaufortfrancois commented on May 10, 2024

Multicast sample has been updated to use the new chrome.sockets.udp API.
Please reopen if you're still experiencing any issue.

from chrome-extensions-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.