class method
self.new
Ruby on Rails 7.0.10
Since v5.2.8.1Signature
self.new(server, env, coder: ActiveSupport::JSON)
No documentation comment.
Parameters
-
serverreq -
envreq -
coderkey = ActiveSupport::JSON
Source
# File actioncable/lib/action_cable/connection/base.rb, line 55
def initialize(server, env, coder: ActiveSupport::JSON)
@server, @env, @coder = server, env, coder
@worker_pool = server.worker_pool
@logger = new_tagged_logger
@websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
@subscriptions = ActionCable::Connection::Subscriptions.new(self)
@message_buffer = ActionCable::Connection::MessageBuffer.new(self)
@_internal_subscriptions = nil
@started_at = Time.now
end
Defined in actioncable/lib/action_cable/connection/base.rb line 55
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Connection::Base