class ActionCable::Connection::WebSocket
:nodoc:
Wrap the real socket to minimize the externally-presented API
def alive?
def alive? websocket && websocket.alive? end
def close
def close websocket.close end
def initialize(env, event_target, event_loop, protocols: ActionCable::INTERNAL[:protocols])
Wrap the real socket to minimize the externally-presented API
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
def possible?
def possible? websocket end
def protocol
def protocol websocket.protocol end
def rack_response
def rack_response websocket.rack_response end
def transmit(data)
def transmit(data) websocket.transmit data end