RxNetService

0.2.3

katoemba/rxnetservice

What's New

Upgrade to RxSwift 6.0

2021-02-20T16:33:55Z

Upgrade to RxSwift 6.0.

RxNetService

bitrise CI platforms Swift Package Manager compatible

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.

Build and usage via swift package manager is supported:

The easiest way to add the library is directly from within XCode (11). Alternatively you can create a Package.swift file.

// swift-tools-version:5.0

import PackageDescription

let package = Package(
  name: "MyProject",
  dependencies: [
  .package(url: "https://github.com/katoemba/rxnetservice.git", from: "0.2.1")
  ],
  targets: [
    .target(name: "MyProject", dependencies: ["rxnetservice"])
  ]
)

Author

Berrie Kremers, berrie at rigelian dot net

License

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

Description

  • Swift Tools 5.0.0
View More Packages from this Author

Dependencies

Last updated: Thu Oct 17 2024 22:43:11 GMT-0900 (Hawaii-Aleutian Daylight Time)