diff options
Diffstat (limited to 'lib/action_cable.rb')
-rw-r--r-- | lib/action_cable.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/action_cable.rb b/lib/action_cable.rb index aaf48efa4b..1fd95f76fa 100644 --- a/lib/action_cable.rb +++ b/lib/action_cable.rb @@ -26,4 +26,9 @@ module ActionCable autoload :RemoteConnection, 'action_cable/remote_connection' autoload :RemoteConnections, 'action_cable/remote_connections' autoload :Broadcaster, 'action_cable/broadcaster' + + # Singleton instance of the server + module_function def server + ActionCable::Server::Base.new + end end |