Skip to content

Commit e8f4954

Browse files
committed
Action Cable readme fix [ci skip]
1 parent d3f0aa3 commit e8f4954

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

actioncable/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ The second option is to pass the server url through the `action_cable_meta_tag`
350350
This uses a url or path typically set via `config.action_cable.url` in the environment configuration files, or defaults to "/cable".
351351

352352
This method is especially useful if your WebSocket url might change between environments. If you host your production server via https, you will need to use the wss scheme
353-
for your ActionCable server, but development might remain http and use the ws scheme. You might use localhost in development and your
353+
for your Action Cable server, but development might remain http and use the ws scheme. You might use localhost in development and your
354354
domain in production.
355355

356356
In any case, to vary the WebSocket url between environments, add the following configuration to each environment:
@@ -412,7 +412,7 @@ The above will start a cable server on port 28080.
412412

413413
### In app
414414

415-
If you are using a threaded server like Puma or Thin, the current implementation of ActionCable can run side-along with your Rails application. For example, to listen for WebSocket requests on `/cable`, mount the server at that path:
415+
If you are using a threaded server like Puma or Thin, the current implementation of Action Cable can run side-along with your Rails application. For example, to listen for WebSocket requests on `/cable`, mount the server at that path:
416416

417417
```ruby
418418
# config/routes.rb
@@ -421,7 +421,7 @@ Example::Application.routes.draw do
421421
end
422422
```
423423

424-
For every instance of your server you create and for every worker your server spawns, you will also have a new instance of ActionCable, but the use of Redis keeps messages synced across connections.
424+
For every instance of your server you create and for every worker your server spawns, you will also have a new instance of Action Cable, but the use of Redis keeps messages synced across connections.
425425

426426
### Notes
427427

@@ -433,7 +433,7 @@ The WebSocket server doesn't have access to the session, but it has access to th
433433

434434
## Dependencies
435435

436-
Action Cable provides a subscription adapter interface to process its pubsub internals. By default, asynchronous, inline, PostgreSQL, evented Redis, and non-evented Redis adapters are included. The default adapter in new Rails applications is the asynchronous (`async`) adapter. To create your own adapter, you can look at `ActionCable::SubscriptionAdapter::Base` for all methods that must be implemented, and any of the adapters included within ActionCable as example implementations.
436+
Action Cable provides a subscription adapter interface to process its pubsub internals. By default, asynchronous, inline, PostgreSQL, evented Redis, and non-evented Redis adapters are included. The default adapter in new Rails applications is the asynchronous (`async`) adapter. To create your own adapter, you can look at `ActionCable::SubscriptionAdapter::Base` for all methods that must be implemented, and any of the adapters included within Action Cable as example implementations.
437437

438438
The Ruby side of things is built on top of [websocket-driver](https://github.com/faye/websocket-driver-ruby), [nio4r](https://github.com/celluloid/nio4r), and [concurrent-ruby](https://github.com/ruby-concurrency/concurrent-ruby).
439439

0 commit comments

Comments
 (0)