Comments (5)
I don't think this is Ionic related. I'm getting the same error with a simple NodeJS project.
from bonjour.
I'm getting the same error on ionic 2 typescript with [email protected] using
import Bonjour from 'bonjour';
and then
Bonjour.find({ type: 'http' }, function (service) {
console.log('Found an HTTP server:', service)
})
from bonjour.
Found an alternative here at ZeroConf Ionic Plugin, I would have preferred this "bonjour" module but I see no other alternative to go to Zeroconf.
from bonjour.
The module dgram is not available in client side Ionic code. Ionic runs on cordova and not on the node js system which means that this package cannot be used in Ionic for the moment. The Zeroconf Ionic plugin is a great alternative, though it is only suited for ios and android.
When programming with the zeroconf plugin, you can use safari to debug when you run on an ios device. Find the 'developer' menu in settings and you can see your device listed there.
When you can't run on a device but in a browser, look up 'mock' to 'imitate' a service being added so you can develop the things you need.
from bonjour.
Hi,
I went into the dgram folder and it is pretty empty (just a readme) :
This package name is not currently in use, but was formerly occupied by another package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.
You may adopt this package by contacting [email protected] and requesting the name.
So as suggested I wrote to npm, and they answered :
Thanks for reaching out!
The dgram package on npm was empty and didn't do anything, however many packages mistakenly depended on it. npm, Inc. has taken ownership of it.
It's also a built-in Node module. If you've depended on dgram, you can safely remove it from your package dependencies.
You can learn more about dgram in Node here: https://nodejs.org/api/dgram.html
And so I went to the web site suggested but it doesn't seems it was empty actually....
Whatever, I tried to comment out things with dgram ( in multicast-dns package ) or tweek it but it seems it was useful at some points.
SO, so, i don't know what to do with that haha. I'll go to multicast-dns see what may be done.
from bonjour.
Related Issues (20)
- Configurable publish service announcement HOT 1
- how can I reset the search?
- Server does not respond to _services._dns-sd._udp. meta-query HOT 1
- doesn't work with udp ?
- Filter on txt object
- How to use update
- Goodbye message wasn't sent HOT 2
- When creating Bonjour on Windows, MacOSx + iOS is unable to resolve the service HOT 1
- Not finding devices on Windows 10 HOT 7
- Finding service on wired and wireless interface HOT 1
- CVE-2021-23386: out-dated dns-packet dependency --> update multicast-dns HOT 15
- multicast-dns upgrade needed to address CVE HOT 1
- Don't work on Oracle Linux 8
- Vulnerability in package
- Deprecate package in favor of bonjour-service?
- Bonjour publish error at TicksAndRejections
- Bonjour is throwing error in Electron js HOT 3
- Program crashing because of server module (through multicastdns) throwing EADDRNOTAVAIL HOT 3
- Service.prototype._records violates protocol specification (RFC 6762 "Multicast DNS")
- Deprecate this package and tell users to use bonjour-service instead HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bonjour.