AnyCable allows you to use any WebSocket server (written in any language) as a replacement for your Ruby server (such as Faye, ActionCable, etc).
AnyCable uses ActionCable protocol, so you can use ActionCable JavaScript client without any monkey-patching.
NOTE: Since version 0.4.0 this repository contains only core functionality and connot be used separately as is. Rails plug-n-play integration has been extracted to anycable-rails gem.
- Ruby ~> 2.3
- Redis (for brodcasting, discuss other options with us!)
Read our Wiki for more.
Anycable uses anyway_config, thus it is also possible to set configuration variables through secrets.yml
or environment vars.
This is the compatibility list for the AnyCable gem, not for AnyCable servers (which may not support some of the features yet).
Feature | Status |
---|---|
Connection Identifiers | + |
Connection Request (cookies, params) | + |
Disconnect Handling | + |
Subscribe to channels | + |
Parameterized subscriptions | + |
Unsubscribe from channels | + |
Subscription Instance Variables | - |
Performing Channel Actions | + |
Streaming | + |
Custom stream callbacks | - |
Broadcasting | + |
Bug reports and pull requests are welcome on GitHub at https://github.com/anycable/anycable.
The gem is available as open source under the terms of the MIT License.