Async::CableGuidesGetting Started

Getting Started

This guide shows you how to add async-cable to your project to enable real-time communication between clients and servers using Falcon and Action Cable.

Installation

Add the gem to your project:

$ bundle add async-cable

Usage

To use async-cable, you need to add the following to your config/application.rb:

require 'async/cable'

This will automatically add the class Async::Cable::Middleware to your middleware stack which will handle incoming WebSocket connections and integrates with Action Cable.