class method self.new

Ruby on Rails 5.1.7

Since v5.0.7.2 Last seen in v5.1.7

Available in: v5.0.7.2 v5.1.7

Signature

self.new(env, event_target, event_loop, protocols: ActionCable::INTERNAL[:protocols])

No documentation comment.

Parameters

env req
event_target req
event_loop req
protocols key = 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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close