Methods
E
N
P
W
Included Modules
Attributes
[R] config
[R] logger
[R] mutex
Class Public methods
new(subscription_adapter: SuccessAdapter)
# File actioncable/test/stubs/test_server.rb, line 9
def initialize(subscription_adapter: SuccessAdapter)
  @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)

  @config = OpenStruct.new(log_tags: [], subscription_adapter: subscription_adapter)
  @config.use_faye = ENV['FAYE'].present?
  @config.client_socket_class = if @config.use_faye
                                  ActionCable::Connection::FayeClientSocket
                                else
                                  ActionCable::Connection::ClientSocket
                                end

   @mutex = Monitor.new
end
Instance Public methods
event_loop()
# File actioncable/test/stubs/test_server.rb, line 27
def event_loop
  @event_loop ||= if @config.use_faye
                    ActionCable::Connection::FayeEventLoop.new
                  else
                    ActionCable::Connection::StreamEventLoop.new
                  end
end
pubsub()
# File actioncable/test/stubs/test_server.rb, line 23
def pubsub
  @pubsub ||= @config.subscription_adapter.new(self)
end
worker_pool()
# File actioncable/test/stubs/test_server.rb, line 35
def worker_pool
  @worker_pool ||= ActionCable::Server::Worker.new(max_size: 5)
end