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).

AnyCable diagram AnyCable diagram

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:

See the list of available WebSocket servers here.