{"id":20120860,"url":"https://github.com/vstirbu/zeroconf","last_synced_at":"2025-05-06T14:33:25.326Z","repository":{"id":57209381,"uuid":"15276190","full_name":"vstirbu/ZeroConf","owner":"vstirbu","description":"ZeroConf plugin for Cordova/Phonegap 3.0","archived":false,"fork":false,"pushed_at":"2017-03-16T17:11:27.000Z","size":462,"stargazers_count":37,"open_issues_count":3,"forks_count":21,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T14:05:27.592Z","etag":null,"topics":["cordova-android","cordova-plugin","zeroconf"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vstirbu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-18T07:03:01.000Z","updated_at":"2025-02-01T19:07:40.000Z","dependencies_parsed_at":"2022-09-18T01:54:22.323Z","dependency_job_id":null,"html_url":"https://github.com/vstirbu/ZeroConf","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vstirbu%2FZeroConf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vstirbu%2FZeroConf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vstirbu%2FZeroConf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vstirbu%2FZeroConf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vstirbu","download_url":"https://codeload.github.com/vstirbu/ZeroConf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252703478,"owners_count":21790891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cordova-android","cordova-plugin","zeroconf"],"created_at":"2024-11-13T19:23:33.534Z","updated_at":"2025-05-06T14:33:24.981Z","avatar_url":"https://github.com/vstirbu.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZeroConf plugin for Cordova/Phonegap #\n\nThis plugin allows you to browse and publish ZeroConf/Bonjour/mDNS services from applications developed using PhoneGap/Cordova 3.0 or newer. For older versions use [ZeroConf](https://github.com/purplecabbage/phonegap-plugins/tree/master/Android/ZeroConf).\n\n[![GitHub version](https://badge.fury.io/gh/vstirbu%2FZeroConf.svg)](http://badge.fury.io/gh/vstirbu%2FZeroConf)\n\n## Adding the Plugin to your project ##\n\nIn your application project directory, if you use `cordova-cli` newer then 5.0:\n\n```bash\ncordova plugin add cordova-zeroconf-plugin\n```\n\nor, for older versions:\n\n```bash\ncordova plugin add https://github.com/vstirbu/ZeroConf@1.1.1\n```\n\n## Using the plugin ##\n\nThere are six static methods on the ZeroConf object, as follows:\n\n### `watch(type, callback)`\nNote that `type` is a fully-qualified service type, including the domain, e.g. `\"_http._tcp.local.\"`\n\n`callback` is a function that is called when services are added and removed. The function is passed\nan object with the following structure:\n\n```javascript\n{\n\t\"service\": {\n\t\t\"port\": 50930,\n\t\t\"protocol\": \"tcp\",\n\t\t\"application\": \"http\",\n\t\t\"urls\": [\"http://192.168.2.2:50930\", \"http://fe80::7256:81ff:fe00:99e3:50930\"],\n\t\t\"description\": \"\\\\00\",\n\t\t\"name\": \"Black iPod\",\n\t\t\"domain\": \"local\",\n\t\t\"server\": \"\",\n\t\t\"addresses\": [\"192.168.2.2\", \"fe80::7256:81ff:fe00:99e3\"],\n\t\t\"type\": \"_http._tcp.local.\",\n\t\t\"qualifiedname\": \"Black iPod._http._tcp.local.\"\n\t},\n\t\"action\": \"added\"\n}\n\n```\nFor more information on the fields, see [the JmDNS docs](http://jmdns.sourceforge.net/apidocs/javax/jmdns/ServiceInfo.html).\nIf you edit ZeroConf.java, you can easily add more fields if you need them.\n\n### `unwatch(type)`\nStops watching for services of the specified type.\n\n### `close()`\nCloses the service browser and stops watching.\n\n### `register(type, name, port, text)`\nPublishes a new service. The fields are as in the structure above. For more information,\nsee [the JmDNS docs](http://jmdns.sourceforge.net/apidocs/javax/jmdns/ServiceInfo.html).\n\n### `unregister()`\nUnregisters all published services.\n\n### `list(type, timeout, success, error)`\nList all published services, search for timeout (in ms). The fields are as in the structure above.\n\n## Credits\n\nOriginal plugin [ZeroConf](https://github.com/purplecabbage/phonegap-plugins/tree/master/Android/ZeroConf) developed by [Matt Kane](https://github.com/ascorbic) / [Triggertrap Ltd](https://github.com/triggertrap).\n\nIt depends on [the JmDNS library](http://jmdns.sourceforge.net/).\n\n## Licence ##\n\nThe MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvstirbu%2Fzeroconf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvstirbu%2Fzeroconf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvstirbu%2Fzeroconf/lists"}