lib/ury_rapid/server/helpers/streaming.rb
# Sets up a connection to the model updates stream.
Sets up a connection to the model updates stream.
Sets up a connection to the model updates stream .
def stream_update
          content_type 'application/json', charset: 'utf-8'
          privs = privilege_set
          stream(:keep_open) { |s| StreamUpdater.launch(@model, s, privs) }
        end
def stream_update content_type 'application/json' , charset : 'utf-8' privs = privilege_set stream ( :keep_open ) { | s | StreamUpdater . launch ( @model , s , privs ) } end
Sets up a connection to the model updates stream.
Sets up a connection to the model updates stream .