Class: ReactiveRecord::SyncromeshController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
lib/syncromesh.rb

Instance Method Summary collapse

Instance Method Details

#readObject



167
168
169
# File 'lib/syncromesh.rb', line 167

def read
  render json: Syncromesh::SimplePoller.read(params[:subscriber])
end

#subscribeObject



163
164
165
# File 'lib/syncromesh.rb', line 163

def subscribe
  render json: {id: Syncromesh::SimplePoller.subscribe}
end