A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jondwillis/RxPusherSwift below:

jondwillis/RxPusherSwift: Rx wrapper for PusherSwift https://github.com/pusher/pusher-websocket-swift

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

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

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)

RxSwift, RxCocoa, PusherSwift

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

Jon Willis, jondwillis@gmail.com

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4