I don't have time to properly maintain action-cable-react and it may not work with the latest versions of React and/or Rails. The package also still uses mixins which are considered harmful. I recommend replacing with react-actioncable-provider which offers similar functionality using a higher-order component and is up to date with the latest versions.
Example server application for action-cable-react
- git
- ruby 2.2.3 (rvm recommended)
- Clone the repository (
git clone git@github.com:schneidmaster/action-cable-react-example-server.git
) - Install gem dependencies:
bundle install
- Run
rails s
to start the ActionCable server
You will need to simultaneously set up and run the example client app. Then, open two browser tabs to http://localhost:9010 and start sending messages -- both screens will be updated in realtime by ActionCable and the React binding.
- Fork it ( https://github.com/schneidmaster/action-cable-react-example-server/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
MIT