You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: actioncable/README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -350,7 +350,7 @@ The second option is to pass the server url through the `action_cable_meta_tag`
350
350
This uses a url or path typically set via `config.action_cable.url` in the environment configuration files, or defaults to "/cable".
351
351
352
352
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
354
354
domain in production.
355
355
356
356
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.
412
412
413
413
### In app
414
414
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:
416
416
417
417
```ruby
418
418
# config/routes.rb
@@ -421,7 +421,7 @@ Example::Application.routes.draw do
421
421
end
422
422
```
423
423
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.
425
425
426
426
### Notes
427
427
@@ -433,7 +433,7 @@ The WebSocket server doesn't have access to the session, but it has access to th
433
433
434
434
## Dependencies
435
435
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.
437
437
438
438
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).
0 commit comments