Latest 0.1.0
Homepage https://github.com/jondwillis/RxPusherSwift
License MIT
Platforms ios 8.0, osx 10.9, tvos 9.0
Dependencies PusherSwift, RxSwift, RxCocoa
Authors

[![CI Status](http://img.shields.io/travis/Jon Willis/RxPusherSwift.svg?style=flat)](https://travis-ci.org/Jon Willis/RxPusherSwift)
Version
License
Platform

Example

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

Binding to Connection

pusher
    .connection
    .rx_connectionState
    .map { "($0.new)" }
    .bindTo(self.connectionStateLabel.rx_text)
    .addDisposableTo(self.disposeBag)

Binding to a channel and event

pusher
    .rx_subscribe("exampleChannel")
    .flatMapLatest { channel in channel.rx_bind("exampleEvent") }
    .map { "($0)" }
    .bindTo(self.lastMessageLabel.rx_text)
    .addDisposableTo(disposeBag)

Requirements

RxSwift, RxCocoa, PusherSwift

Installation

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

pod "RxPusherSwift"

Author

Jon Willis, [email protected]

License

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

Latest podspec

{
    "name": "RxPusherSwift",
    "version": "0.1.0",
    "summary": "Rx wrapper for PusherSwift",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/jondwillis/RxPusherSwift",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Jon Willis": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jondwillis/RxPusherSwift.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "tvos": "9.0"
    },
    "source_files": "RxPusherSwift/Classes/**/*",
    "dependencies": {
        "PusherSwift": [
            "~> 2.0"
        ],
        "RxSwift": [
            "~> 2.6"
        ],
        "RxCocoa": [
            "~> 2.6"
        ]
    }
}

Pin It on Pinterest

Share This