add-websockets-railway

add-websockets-railway is a command for Claude Code from Ashikparvez89/larouex-fullstack-plugin. It costs 0 tokens per session (127 once invoked), scanned A, a copy of add-websockets-railway, MIT.

A real-time communication setup using WebSockets, which keep a live connection between a browser and server, with Socket.io on Railway. It includes React client connections, grouped rooms, private messages, authentication, and connection recovery.

In plain words
What is it for?
Use it to build chat, live updates, notifications, broadcasting, private messaging, and room-based communication in an Express and React application deployed on Railway.
Why use it?
It removes the need for repeated browser requests when users need immediate updates. It also covers connection health, reconnecting after failures, and messaging across multiple server instances.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Part of the larouex-fullstack-builder plugin — 80 commands shipped together

Good fit Use it to build chat, live updates, notifications, broadcasting, private messaging, and room-based communication in an Express and React application deployed on Railway.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ashikparvez89/larouex-fullstack-plugin/add-websockets-railway
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Ashikparvez89/larouex-fullstack-plugin

Made for: Claude Code.

Or install larouex-fullstack-builder, the plugin that ships this one along with the rest of its 80 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-websockets-railway

README.md
[![agentmods](https://agentmods.dev/badge/commands/ashikparvez89/larouex-fullstack-plugin/add-websockets-railway.svg)](https://agentmods.dev/commands/ashikparvez89/larouex-fullstack-plugin/add-websockets-railway)
Your own site
<a href="https://agentmods.dev/commands/ashikparvez89/larouex-fullstack-plugin/add-websockets-railway"><img src="https://agentmods.dev/badge/commands/ashikparvez89/larouex-fullstack-plugin/add-websockets-railway.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 127 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00127
Opus 5 $0.00000 $0.00063
Sonnet 5 $0.00000 $0.00025
Haiku 4.5 $0.00000 $0.00013

Measured 4d ago against content hash 7ed264a5dbd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

add-websockets-railway scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to add-websockets-railway — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/add-websockets-railway.md · 2 lines

What it actually says

Implement WebSockets using Socket.io on Railway. Set up Socket.io server integrated with Express application. Configure CORS for WebSocket connections. Create client connection hooks with React. Implement room-based messaging for grouped communication. Add user authentication for WebSocket connections using JWT. Handle connection and disconnection events. Implement reconnection logic with exponential backoff. Add heartbeat/ping-pong for connection health monitoring. Create message broadcasting and private messaging. Provide examples: real-time chat, live updates, notifications. Handle scaling with Redis adapter for multiple server instances. Reference devops-railway-agent for Railway deployment. Test WebSocket functionality in production environment.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 2 lines · 0 tokens per session scan A 7ed264a5dbd6

Subscribe to this mod's changes

add-websockets-railway is a command published in the GitHub repository Ashikparvez89/larouex-fullstack-plugin (3 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 127 tokens. A static security scan graded it A with 0 findings. It is 100% identical to add-websockets-railway, differing in 0 lines, and is treated as a copy.

Related

Other commands, from other repositories

add-api-azure

Create a new Azure Function HTTP endpoint with full integration.

LarouexNonprofitConsulting/larouex-fullstack-plugin · 0 tokens

add-websockets-azure

Implement real-time communication using Azure SignalR Service. Set up Azure SignalR resource and obtain connection string. Create Azure Function for SignalR negotiation endpoint. Implement SignalR hub with message broadcasting methods. Create client connection hooks with automatic reconnection. Implement…

LarouexNonprofitConsulting/larouex-fullstack-plugin · 0 tokens

scaffold-azure-functions

Create an Azure Functions v4 project with TypeScript.

LarouexNonprofitConsulting/larouex-fullstack-plugin · 0 tokens

add-search-azure

Integrate Azure Cognitive Search for powerful full-text search. Set up Azure Cognitive Search service and create search index with schema. Create Azure Function for search API endpoint with query parameters. Implement search component with filters and facets. Add autocomplete and suggestions using search service…

LarouexNonprofitConsulting/larouex-fullstack-plugin · 0 tokens

add-upload-azure

Implement file upload functionality with Azure Blob Storage. Create upload component with drag-and-drop interface and file selection. Build Azure Function to generate SAS tokens for secure direct uploads. Implement client-side upload to Blob Storage using Azure SDK. Add upload progress tracking with progress bar.…

LarouexNonprofitConsulting/larouex-fullstack-plugin · 0 tokens

add-upload-railway

Implement file upload functionality using Railway volumes or S3-compatible storage. Create upload component with drag-and-drop interface. Add Express API endpoint for file handling with multer middleware. Implement multipart/form-data parsing. Add upload progress tracking. Validate file types, sizes, and names…

LarouexNonprofitConsulting/larouex-fullstack-plugin · 0 tokens