Lite Cable

Services & Skills

Share on

Lite Cable provides Connection and Channel abstractions to design real-time features in your application:

class Connection < LiteCable::Connection::Base
  def connect
    # perform authentication here

class ChatChannel < LiteCable::Channel::Base
  # Use this id in your client to create subscriptions
  identifier :chat

At the client-side, you can use any Action Cable library (including the official Rails one).

Lite Cable is designed to be used with AnyCable. All you need to do is configure the connection factory for AnyCable:

AnyCable.connection_factory = Connection

Alternatively, you can use a simple Rack-based WebSocket server implementation which comes with the library:

require "lite_cable/server" do
  map "/cable" do
    # You have to specify your app's connection class
    use LiteCable::Server::Middleware, connection_class: Connection
    run proc { |_| [200, {"Content-Type" => "text/plain"}, ["OK"]] }

In the same orbit

Explore more open source projects

Let's solve your hard problems

Martians at a glance
years in business

We're experts at helping developer products grow, with a proven track record in UI design, product iterations, cost-effective scaling, and much more. We'll lay out a strategy before our engineers and designers leap into action.

If you prefer email, write to us at