Skip to content

Local discovery: Local devices do not get removed from list automatically or by again rescanning for android,iOS both  #179

@shiv-sky

Description

@shiv-sky

Find Implementation Details
Initialization:
this.zeroconf = new Zeroconf()
this.zeroconf?.scan('http', 'tcp', 'local.')
this.zeroconf?.on('start', this.onLocalScanningStart)
this.zeroconf?.on('stop', this.onLocalScanningStop)
this.zeroconf?.on('resolved', this.onDeviceDetected)
this.zeroconf?.on('error', this.onErrorInLocalScanning)
this.zeroconf?.on('remove',(name)=>this.onRemove(name))


Force Rescan
this.zeroconf?.stop()
this.zeroconf?.removeDeviceListeners?.()
this.zeroconf = null
setTimeout(() => {
this.initZeroConfig()
},1000)

Version: react-native-zeroconf: 0.13.7

Please let me know solution. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions