0.2.0 • Published 7 years ago

pusher-redux-plus v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

pusher-redux

Integration of Pusher into Redux

Installation

You can download this by executing

npm -i S pusher-redux

Usage

Configure Pusher

Use it in your component

Change state in your reducer

Format of actions

Pusher-redux dispatches actions of the following format:

Delayed configuration

Sometimes you want to authenticate user for receiving pusher information, but you don't have user credentials yet. In this case you can do the following:

And once user information is available

React Native

If you want to use react-native then replace ALL imports of pusher-redux with pusher-redux/react-native e.g.

Options

Pusher-redux accepts all the same options that pusher-js does

Contributing

You are welcome to import more features from pusher-js

License

This code is released under the MIT License.