RxSSDP
A clean reactive SSDP client, based on UDPBroadcastConnection
Usage
- Implement the repository
let repository: SSDPRepository = SSDPRepositoryImpl()
- Scan the network
repository.scan(searchTarget: "urn:schemas-upnp-org:device:ZonePlayer:1")
-
Subscribe for changes
-
MacOS Apps - when you are using this lib in a MacOS app, then add the following entries to your entitlements file:
- com.apple.security.network.client
- com.apple.security.network.server
Modify settings
Inspect SSDPSettings.swift, this class contains all customizable settings.
Cocoapods
pod 'RxSSDP', '~> 5.0'
Carthage
github "stefanrenne/RxSSDP" ~> 5.0
Testing
- Create a
FakeSSDPRepository
which returnsSSDPResponse