/RxSSDP

An Reactive SSDP client with buffering written in Swift, based on SwiftSSDPClient

Primary LanguageSwiftApache License 2.0Apache-2.0

RxSSDP

Swift 5.0 Travis Badge Version License Platform

A clean reactive SSDP client, based on UDPBroadcastConnection

Usage

  1. Implement the repository
let repository: SSDPRepository = SSDPRepositoryImpl()
  1. Scan the network
repository.scan(searchTarget: "urn:schemas-upnp-org:device:ZonePlayer:1")
  1. Subscribe for changes

  2. 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'

Testing

  1. Create a FakeSSDPRepository which returns SSDPResponse