HTTPS SSH

RxNetService

Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Code Snippet

//
// Newly discovered services are posted on an Observable sequence:
//
let httpNetServiceBrowser = NetServiceBrowser()
httpNetServiceBrowser.rx.serviceAdded
    .subscribe(onNext: { (service) in
        print("Found player \(service.name)")
    })
    .disposed(by: bag)

httpNetServiceBrowser.searchForServices(ofType: "_http._tcp.", inDomain: "")

Requirements

This library depends on RxSwift and RxCocoa.

Installation

RxNetService is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'RxNetService'

Author

Berrie Kremers, berrie@rigelian.net

License

RxNetService is available under the MIT license. See the LICENSE file for more info.