aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/action_cable/server/base.rb
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-01-21 14:59:11 +1030
committerMatthew Draper <matthew@trebex.net>2016-01-24 22:52:40 +1030
commit322dca293b3716ccaa09e7e82046e539b0d2ffda (patch)
tree512383f2375ff948a085183c74c3da2848f58069 /actioncable/lib/action_cable/server/base.rb
parent68a9060d02b1eb35c12843c0f1653809b776b35b (diff)
downloadrails-322dca293b3716ccaa09e7e82046e539b0d2ffda.tar.gz
rails-322dca293b3716ccaa09e7e82046e539b0d2ffda.tar.bz2
rails-322dca293b3716ccaa09e7e82046e539b0d2ffda.zip
Import the relevant portions of faye-websocket
(as adapted to use concurrent-ruby / nio4r instead of eventmachine)
Diffstat (limited to 'actioncable/lib/action_cable/server/base.rb')
-rw-r--r--actioncable/lib/action_cable/server/base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actioncable/lib/action_cable/server/base.rb b/actioncable/lib/action_cable/server/base.rb
index 3385a4c9f3..b00abd208c 100644
--- a/actioncable/lib/action_cable/server/base.rb
+++ b/actioncable/lib/action_cable/server/base.rb
@@ -32,6 +32,10 @@ module ActionCable
@remote_connections ||= RemoteConnections.new(self)
end
+ def stream_event_loop
+ @stream_event_loop ||= ActionCable::Connection::StreamEventLoop.new
+ end
+
# The thread worker pool for handling all the connection work on this server. Default size is set by config.worker_pool_size.
def worker_pool
@worker_pool ||= ActionCable::Server::Worker.new(max_size: config.worker_pool_size)