Getting Started
AnyCable acts like a bridge between logic-less WebSocket server and Action Cable-like Ruby framework (i.e. framework which support Action Cable protocol).
The primary goal of AnyCable is to make it possible to write a high-performant real-time application using Ruby as a language for implementing a business-logic.
This goal is achieved by moving low-level responsibility (handling sockets, parsing frames, broadcasting data) to WebSocket servers written in other languages (such as Golang or Erlang).
AnyCable could be used with the existing Action Cable clients (such as Rails JavaScript client or Action Cable CLI) without any change. However, for web development we recommend using AnyCable JS/TS client, which provides better compatibility with AnyCable-specific features.
You can use AnyCable with:
- Action Cable (Rails) apps (see Using with Rails)
- Lite Cable for plain Ruby projects (see Using with Ruby)
- your own AnyCable-compatible framework.
See the list of available WebSocket servers here.