| Use Case | Command | Description |
|---|---|---|
| π Create a new connection | ActionCable::Connection.new(server, env, coder) |
Instantiate a WebSocket connection with server, request environment, and message coder. |
| π Open connection | connection.connect |
Establish the WebSocket connection and invoke the registered connect callback. |
| π Close connection | connection.disconnect |
Gracefully close the WebSocket connection and run disconnect callbacks. |
| π¨ Receive message | connection.receive(data) |
Process an incoming WebSocket message (JSONβencoded command or data). |
| π€ Transmit message | connection.transmit(data) |
Send a raw JSON message to the client via the WebSocket. |
| π·οΈ Get connection identifier | connection.identifier |
Return the unique connection identifier string. |
ActiveSupport::Autoload (from /home/chedong/.local/share/rdoc)
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-28 22:40 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format