# websocket-rails/websocket-rails

Plug and play websocket support for ruby on rails.

Repository: https://github.com/websocket-rails/websocket-rails
Canonical: https://ross.abutalabs.com/products/websocket-rails
Language: Ruby
License: MIT
License Family: permissive
Last push: 2024-02-14T10:47:37+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5273, "days_push": 931, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1715, forks 280 (observed 2026-08-28T04:05:26.210074+00:00)

## What it is
A Ruby gem that adds plug-and-play WebSocket support to Ruby on Rails applications, with an event router that maps client events to controller actions. It also supports streaming HTTP and Flash socket fallbacks for older browsers, plus channel-based pub/sub messaging.

## Use cases
- add real-time websocket events to a rails app
- push live notifications to browsers from rails
- build chat channels in a ruby on rails application
- route client-side websocket events to rails controllers
- support realtime updates in older browsers via http streaming fallback
- broadcast messages to subscribed clients over websockets

## When to choose
- you maintain a legacy Rails app already using websocket-rails
- you want websocket event routing integrated directly into Rails controllers
- you need fallback transports like HTTP streaming or Flash sockets for old browsers

## When to avoid
- you are starting a new Rails project - Action Cable is the modern built-in alternative
- you need actively developed features or modern Ruby/Rails version support
- you want a framework-agnostic websocket server outside Rails

## Facets
- artifact type: library
- maturity: maintenance
- function: websocket, web-framework, middleware, routing
- domain: web-development, backend
- platform: ruby
- tags: rails, websocket-server, event-driven, channels, javascript-client, flash-sockets, http-streaming, real-time, messaging, web-server

## Member repositories
- websocket-rails/websocket-rails (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:26.210074+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:34:37.214284+00:00, confidence not recorded.
  - readme: https://github.com/websocket-rails/websocket-rails (fetched 2026-08-28T04:05:26.210074+00:00, sha 551e1869546d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
