Skip to content

Commit 6c43ebc

Browse files
authored
Merge pull request rails#47830 from p8/docs/headers-action-cable
Add missing headers to Action Cable docs [ci-skip]
2 parents e726dbc + ba40945 commit 6c43ebc

File tree

12 files changed

+25
-1
lines changed

12 files changed

+25
-1
lines changed

actioncable/lib/action_cable/channel/base.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
module ActionCable
88
module Channel
9+
# = Action Cable \Channel \Base
10+
#
911
# The channel provides the basic structure of grouping behavior into logical units when communicating over the WebSocket connection.
1012
# You can think of a channel like a form of controller, but one that's capable of pushing content to the subscriber in addition to simply
1113
# responding to the subscriber's direct requests.

actioncable/lib/action_cable/channel/streams.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module ActionCable
44
module Channel
5+
# = Action Cable \Channel \Streams
6+
#
57
# Streams allow channels to route broadcastings to the subscriber. A broadcasting is, as discussed elsewhere, a pubsub queue where any data
68
# placed into it is automatically sent to the clients that are connected at that time. It's purely an online queue, though. If you're not
79
# streaming a broadcasting at the very moment it sends out an update, you will not get that update, even if you connect after it has been sent.

actioncable/lib/action_cable/connection/base.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
module ActionCable
77
module Connection
8+
# = Action Cable \Connection \Base
9+
#
810
# For every WebSocket connection the Action Cable server accepts, a Connection object will be instantiated. This instance becomes the parent
911
# of all of the channel subscriptions that are created from there on. Incoming messages are then routed to these channel subscriptions
1012
# based on an identifier sent by the Action Cable consumer. The Connection itself does not deal with any specific application logic beyond

actioncable/lib/action_cable/connection/internal_channel.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module ActionCable
44
module Connection
5+
# = Action Cable \InternalChannel
6+
#
57
# Makes it possible for the RemoteConnection to disconnect a specific connection.
68
module InternalChannel
79
extend ActiveSupport::Concern

actioncable/lib/action_cable/connection/subscriptions.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
module ActionCable
66
module Connection
7+
# = Action Cable \Connection \Subscriptions
8+
#
79
# Collection class for all the channel subscriptions established on a given connection. Responsible for routing incoming commands that arrive on
810
# the connection to the proper channel.
911
class Subscriptions # :nodoc:

actioncable/lib/action_cable/connection/tagged_logger_proxy.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module ActionCable
44
module Connection
5+
# = Action Cable \Connection \TaggedLoggerProxy
6+
#
57
# Allows the use of per-connection tags against the server logger. This wouldn't work using the traditional
68
# ActiveSupport::TaggedLogging enhanced Rails.logger, as that logger will reset the tags between requests.
79
# The connection is long-lived, so it needs its own set of tags for its independent duration.

actioncable/lib/action_cable/connection/test_case.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def initialize(request)
5656
end
5757
end
5858

59+
# = Action Cable \Connection \TestCase
60+
#
5961
# Unit test Action Cable connections.
6062
#
6163
# Useful to check whether a connection's +identified_by+ gets assigned properly
@@ -116,7 +118,7 @@ def initialize(request)
116118
# assert_equal "1", connection.user_id
117119
# end
118120
#
119-
# == Connection is automatically inferred
121+
# == \Connection is automatically inferred
120122
#
121123
# ActionCable::Connection::TestCase will automatically infer the connection under test
122124
# from the test class name. If the channel cannot be inferred from the test

actioncable/lib/action_cable/connection/web_socket.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
module ActionCable
66
module Connection
7+
# = Action Cable \Connection \WebSocket
8+
#
79
# Wrap the real socket to minimize the externally-presented API
810
class WebSocket # :nodoc:
911
def initialize(env, event_target, event_loop, protocols: ActionCable::INTERNAL[:protocols])

actioncable/lib/action_cable/server/base.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
module ActionCable
66
module Server
7+
# = Action Cable \Server \Base
8+
#
79
# A singleton ActionCable::Server instance is available via ActionCable.server. It's used by the Rack process that starts the Action Cable server, but
810
# is also used by the user to reach the RemoteConnections object, which is used for finding and disconnecting connections across all servers.
911
#

actioncable/lib/action_cable/server/broadcasting.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module ActionCable
44
module Server
5+
# = Action Cable \Server \Broadcasting
6+
#
57
# Broadcasting is how other parts of your application can send messages to a channel's subscribers. As explained in Channel, most of the time, these
68
# broadcastings are streamed directly to the clients subscribed to the named broadcasting. Let's explain with a full-stack example:
79
#

0 commit comments

Comments
 (0)