Namespace
Methods
C
O
Instance Protected methods
close_connection()
# File actioncable/test/connection/identifier_test.rb, line 72
def close_connection
  @connection.send :handle_close
end
open_connection(server:)
# File actioncable/test/connection/identifier_test.rb, line 64
def open_connection(server))
  env = Rack::MockRequest.env_for "/test", 'HTTP_HOST' => 'localhost', 'HTTP_CONNECTION' => 'upgrade', 'HTTP_UPGRADE' => 'websocket'
  @connection = Connection.new(server, env)

  @connection.process
  @connection.send :handle_open
end
open_connection_with_stubbed_pubsub()
# File actioncable/test/connection/identifier_test.rb, line 57
def open_connection_with_stubbed_pubsub
  server = TestServer.new
  server.stubs(:adapter).returns(stub_everything('adapter'))

  open_connection server: server
end