Module: Rapid::Server::Routing::Streaming

Defined in:
lib/ury_rapid/server/routing/streaming.rb

Overview

Routes for update streams

Depends on the Server::Helpers::Streaming helper set.

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object

Registers the streaming routes


9
10
11
12
13
# File 'lib/ury_rapid/server/routing/streaming.rb', line 9

def self.registered(app)
  # Serve the model updates stream under /stream.
  # Ignore any trailing slash.
  app.get('/stream/?') { model_updates_stream }
end