Phonegap Bonjour/Zeroconf or Websocket IP Discover

2019-04-10 12:18发布

I am trying to implement a Phonegap (HTML5) application which connects to a Websocket server (running in an embedded device, also has Bonjour service) to exchange data within home network.

I would like to know the best possible way of detecting the server IP using Phonegap. I have explored and found that Titanium and Quickconnect support Bonjour. But I would like to stick to Phonegap for various other reasons.

Any alternative way of detecting the server IP within the local network is also okay.

Need your suggestion.

1条回答
Animai°情兽
2楼-- · 2019-04-10 13:08

There are two iOS Bonjour plugin implementations for Phonegap (Cordova) on Github:

Unfortunately I haven't found a cross-platform implementation.

查看更多
登录 后发表回答