Skip to content
No description, website, or topics provided.
Swift
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.swiftpm/xcode/package.xcworkspace
RxNetService.xcodeproj
Sources/RxNetService
Tests/RxNetServiceTests
.gitignore
.travis.yml
LICENSE
Package.resolved
Package.swift
README.md

README.md

RxNetService

License Platform

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:

Swift Package Manager

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.

You can’t perform that action at this time.