class ActionCable::Connection::WebSocket
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