Method: ActionCable::Connection::TestSocket#initialize

Defined in:
lib/action_cable/connection/test_case.rb

#initialize(request) ⇒ TestSocket

Returns a new instance of TestSocket.



85
86
87
88
89
90
91
92
93
94
# File 'lib/action_cable/connection/test_case.rb', line 85

def initialize(request)
  inner_logger = ActiveSupport::Logger.new(StringIO.new)
  tagged_logging = ActiveSupport::TaggedLogging.new(inner_logger)
  @logger = ActionCable::Server::TaggedLoggerProxy.new(tagged_logging, tags: [])
  @request = request
  @env = request.env
  @connection = nil
  @closed = false
  @transmissions = []
end