{"id":4728,"url":"https://github.com/netbeast/react-native-ssdp","last_synced_at":"2026-01-14T17:38:47.972Z","repository":{"id":57340354,"uuid":"61139554","full_name":"netbeast/react-native-ssdp","owner":"netbeast","description":"SSDP client + server to use in your react-native apps","archived":false,"fork":true,"pushed_at":"2020-07-27T22:24:55.000Z","size":159,"stargazers_count":41,"open_issues_count":8,"forks_count":20,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-11-27T09:48:57.590Z","etag":null,"topics":["iot","node","smart-home"],"latest_commit_sha":null,"homepage":"https://netbeast.co","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"diversario/node-ssdp","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netbeast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-14T16:44:22.000Z","updated_at":"2024-05-28T18:08:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/netbeast/react-native-ssdp","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/netbeast/react-native-ssdp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netbeast%2Freact-native-ssdp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netbeast%2Freact-native-ssdp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netbeast%2Freact-native-ssdp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netbeast%2Freact-native-ssdp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netbeast","download_url":"https://codeload.github.com/netbeast/react-native-ssdp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netbeast%2Freact-native-ssdp/sbom","scorecard":{"id":680614,"data":{"date":"2025-08-11","repo":{"name":"github.com/netbeast/react-native-ssdp","commit":"186d0c3c235cd705c9155a0fc1fc22d15a92e930"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":1,"reason":"Found 4/27 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T23:00:42.059Z","repository_id":57340354,"created_at":"2025-08-21T23:00:42.059Z","updated_at":"2025-08-21T23:00:42.059Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28428899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iot","node","smart-home"],"created_at":"2024-01-05T20:17:21.525Z","updated_at":"2026-01-14T17:38:47.955Z","avatar_url":"https://github.com/netbeast.png","language":"JavaScript","readme":"# SSDP fork for React Native from node\n\nThis is a fork of `node-ssdp` that uses `react-native-udp` instead of `dgram` to enable react multicast messaging and plain socket control. The API is the same as in the forked version.\n\n\u003ca href=\"https://getyeti.co\" target=\"_blank\"\u003e\n   \u003cimg alt=\"works with yeti\" src=\"https://github.com/netbeast/react-native-dial/raw/master/works-with-yeti.png\" width=\"100\" /\u003e\n\u003c/a\u003e\n\n\u003e This package powers [Yeti Smart Home](https://getyeti.co) and is used in production. It is maintained with our developers's free time, PRs and issues are more than welcome.\n\n## Installation\n\nUnless React Native Version is \u003e 0.29 use rnpm else use react-native link.\n\n```javascript\nnpm install react-native-ssdp\nrnpm link\n```\n\nMake sure you set `Buffer` as global in `react-native-udp`'s UdpSockets.js (noted filename end with letter s)\n\n```javascript\nglobal.Buffer = global.Buffer || require('buffer').Buffer\n```\n\n## Things to take note\n- Be aware that the Android emulator does not support incoming UDP traffic, so the client will not get any responses to search requests.  For best results, test on a real device when using Android.  The iOS simulator, on the other hand, works just fine.\n\n- Make sure you close all the sockets you open and never try to reopen one already open, mobile OSs and React Native are very aggresive both with security and performance, so a misuse could kill your process.\n\n## Usage (Android)\n\n### android/settings.gradle\n\n```gradle\n...\ninclude ':react-native-udp'\nproject(':react-native-udp').projectDir = new File(settingsDir, '../node_modules/react-native-udp/android')\ninclude ':react-native-network-info'\nproject(':react-native-network-info').projectDir = new File(settingsDir, '../node_modules/react-native-network-info/android')\n```\n\n### android/app/build.gradle\n\n```gradle\n...\ndependencies {\n\t...\n\tcompile project(':react-native-udp')\n\tcompile project(':react-native-network-info')\n}\n```\n\n### register module in MainActivity.java\n\n#### For RN 0.19.0 and higher\n```java\nimport com.tradle.react.UdpSocketsModule;  // \u003c--- import\nimport com.pusherman.networkinfo.RNNetworkInfoPackage; // \u003c--- import\n\npublic class MainActivity extends ReactActivity {\n   // ...\n    @Override\n    protected List\u003cReactPackage\u003e getPackages() {\n      return Arrays.\u003cReactPackage\u003easList(\n        new MainReactPackage(), // \u003c---- add comma\n\t\tnew UdpSocketsModule(), // \u003c---- add package\n        new RNNetworkInfoPackage() // \u003c---------- add package\n      );\n    }\n```\n\n#### For react-native 0.29.0 and higher ( in MainApplication.java )\n```java\nimport com.tradle.react.UdpSocketsModule;  // \u003c--- import\nimport com.pusherman.networkinfo.RNNetworkInfoPackage; // \u003c--- import\n\npublic class MainApplication extends Application implements ReactApplication {\n   // ...\n    @Override\n    protected List\u003cReactPackage\u003e getPackages() {\n      return Arrays.\u003cReactPackage\u003easList(\n        new MainReactPackage(), // \u003c---- add comma\n        new UdpSocketsModule(), // \u003c---- add package\n\t\tnew RNNetworkInfoPackage() \u003c---- add package\n      );\n    }\n```\n\n## Usage (iOS)\n\n### Adding with CocoaPads\n\nAdd the RNFS pod to your list of applications pods in your podfile, using the path from the Podfile to the installed module.\n\n```\npod 'RNUDP', :path =\u003e './node_modules/react-native-udp'\npod 'RNNetworkInfo', :path =\u003e './node_modules/react-native-network-info'\n```\n\nInstall pods as usual:\n```\npod install\n```\n\n### Adding manually in Xcode\n\nIn XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name] Go to node_modules ➜ react-native-fs and add the .xcodeproj file\n\nIn XCode, in the project navigator, select your project. Add the `lib*.a` from the RNFS project to your project's Build Phases ➜ Link Binary With Libraries. Click the .xcodeproj file you added before in the project navigator and go the Build Settings tab. Make sure 'All' is toggled on (instead of 'Basic'). Look for Header Search Paths and make sure it contains both `$(SRCROOT)/../react-native/React` and `$(SRCROOT)/../../React` - mark both as recursive.\n\nRun your project (Cmd+R)\n\n**Note:** Library uses these installed native_modules internally for sockets communication.\n\n## Usage - Client\n\n```javascript\n    var Client = require('react-native-ssdp').Client\n      , client = new Client();\n\n    client.on('response', function (headers, statusCode, rinfo) {\n      console.log('Got a response to an m-search.');\n    });\n\n    // search for a service type\n    client.search('urn:schemas-upnp-org:service:ContentDirectory:1');\n\n    // Or get a list of all services on the network\n\n    client.search('ssdp:all');\n```\n\n## Usage - Server\n\n```javascript\n    var Server = require('react-native-ssdp').Server\n      , server = new Server()\n    ;\n\n    server.addUSN('upnp:rootdevice');\n    server.addUSN('urn:schemas-upnp-org:device:MediaServer:1');\n    server.addUSN('urn:schemas-upnp-org:service:ContentDirectory:1');\n    server.addUSN('urn:schemas-upnp-org:service:ConnectionManager:1');\n\n    server.on('advertise-alive', function (headers) {\n      // Expire old devices from your cache.\n      // Register advertising device somewhere (as designated in http headers heads)\n    });\n\n    server.on('advertise-bye', function (headers) {\n      // Remove specified device from cache.\n    });\n\n    // start the server\n    server.start();\n\n    process.on('exit', function(){\n      server.stop() // advertise shutting down and stop listening\n    })\n```\n\n\n# Legacy docs from the forked repo\n\nTake a look at `example` directory as well to see examples or client and server.\n\n##Configuration\n`new SSDP([options, [socket]])`\n\nSSDP constructor accepts an optional configuration object and an optional initialized socket. At the moment, the following is supported:\n\n- `ssdpSig` _String_ SSDP signature. Default: `node.js/NODE_VERSION UPnP/1.1 node-ssdp/PACKAGE_VERSION`\n- `ssdpIp` _String_ SSDP multicast group. Default: `239.255.255.250`.\n- `ssdpPort` _Number_ SSDP port. Default: `1900`\n- `ssdpTtl` _Number_ Multicast TTL. Default: `1`\n- `adInterval` _Number_ `advertise` event frequency (ms). Default: 10 sec.\n- `unicastHost` _String_ IP address or hostname of server where SSDP service is running. This is used in `HOST` header. Default: `0.0.0.0`.\n- `location` _String_ URL pointing to description of your service, or a function which returns that URL\n- `udn` _String_ Unique Device Name. Default: `uuid:f40c2981-7329-40b7-8b04-27f187aecfb5`.\n- `description` _String_ Path to description file. Default: `upnp/desc.php`.\n- `ttl` _Number_ Packet TTL. Default: `1800`.\n- `allowWildcards` _Boolean_ Accept wildcards (`*`) in `serviceTypes` of `M-SEARCH` packets, e.g. `usn:Belkin:device:**`. Default: `false`\n\n###Logging\n\nYou can enable logging via an environment variable `DEBUG`. Set `DEBUG=node-ssdp*` to enable all logs. To enable only client or server logs, use\n`DEBUG=node-ssdp:client` or `DEBUG=node-ssdp:server` respectively.\n\n# License\n\n(The MIT License)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["Components"],"sub_categories":["Backend"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetbeast%2Freact-native-ssdp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetbeast%2Freact-native-ssdp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetbeast%2Freact-native-ssdp/lists"}