class ActionCable::Connection::StreamTest::Connection
Attributes
connected[R]
errors[R]
websocket[R]
Public Class Methods
new(*)
click to toggle source
Calls superclass method
ActionCable::Connection::Base::new
# File actioncable/test/connection/stream_test.rb, line 10 def initialize(*) super @errors = [] end
Public Instance Methods
connect()
click to toggle source
# File actioncable/test/connection/stream_test.rb, line 15 def connect @connected = true end
disconnect()
click to toggle source
# File actioncable/test/connection/stream_test.rb, line 19 def disconnect @connected = false end
on_error(message)
click to toggle source
# File actioncable/test/connection/stream_test.rb, line 27 def on_error(message) @errors << message end
send_async(method, *args)
click to toggle source
# File actioncable/test/connection/stream_test.rb, line 23 def send_async(method, *args) send method, *args end