class Object

Public Class Methods

new(request) click to toggle source
Calls superclass method
# File lib/anycable/rails/actioncable/testing.rb, line 28
def initialize(request)
  @request = request
  @cached_ids = {}
  super
end

Public Instance Methods

disconnect(reconnect: true) click to toggle source
# File lib/anycable/rails/actioncable/remote_connections.rb, line 8
def disconnect(reconnect: true)
  ::AnyCable.broadcast_adapter.broadcast_command("disconnect", identifier: identifiers_json, reconnect: reconnect)
end
handle_channel_command(*) click to toggle source
Calls superclass method
# File lib/anycable/rails/actioncable/connection.rb, line 213
def handle_channel_command(*)
  super
rescue Exception => e # rubocop:disable Lint/RescueException
  rescue_with_handler(e) || raise
  false
end
socket() click to toggle source
# File lib/anycable/rails/actioncable/testing.rb, line 20
def socket
  @socket ||= AnyCable::Socket.new(env: AnyCable::Env.new(url: "http://test.host", headers: {}))
end
subscribe_to_channel() click to toggle source
# File lib/anycable/rails/actioncable/testing.rb, line 14
def subscribe_to_channel
  handle_subscribe
end