Wrap the real socket to minimize the externally-presented API
Methods
Attributes
[R] | websocket | TODO Change this to private once we've dropped Ruby 2.2 support. Workaround for Ruby 2.2 “private attribute?” warning. |
Class Public methods
new(env, event_target, event_loop, protocols: ActionCable::INTERNAL[:protocols])
Link
# File actioncable/lib/action_cable/connection/web_socket.rb, line 7 def initialize(env, event_target, event_loop, protocols: ActionCable::INTERNAL[:protocols]) @websocket = ::WebSocket::Driver.websocket?(env) ? ClientSocket.new(env, event_target, event_loop, protocols) : nil end
Instance Public methods
alive?()
Link
close()
Link
possible?()
Link
protocol()
Link
rack_response()
Link