class method
self.new
Ruby on Rails 5.1.7
Since v5.0.7.2 Last seen in v5.1.7Available in: v5.0.7.2 v5.1.7
Signature
self.new(env, event_target, event_loop, protocols: ActionCable::INTERNAL[:protocols])
No documentation comment.
Parameters
-
envreq -
event_targetreq -
event_loopreq -
protocolskey = ActionCable::INTERNAL[:protocols]
Source
# 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
Defined in actioncable/lib/action_cable/connection/web_socket.rb line 7
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Connection::WebSocket