After switch wifi, the failure callback will be called.
After that the zeroconf can't find new services.
I have tried:
this.zf.watch('_http._tcp.', 'local.', (result) => {
}, (ec) => {
// After switch wifi, this failure callback will be called.
console.log("zf error: ",ec);
this.zf.reInit();
});
but it does't work
Steps to reproduce:
connect wifi1
start app
switch to wifi2
4.check app
After switch wifi, the failure callback will be called.
After that the zeroconf can't find new services.
I have tried:
this.zf.watch('_http._tcp.', 'local.', (result) => {
}, (ec) => {
// After switch wifi, this failure callback will be called.
console.log("zf error: ",ec);
this.zf.reInit();
});
but it does't work
Steps to reproduce:
connect wifi1
start app
switch to wifi2
4.check app