Class: ReactiveRecord::SyncromeshController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ReactiveRecord::SyncromeshController
- Defined in:
- lib/syncromesh.rb
Instance Method Summary collapse
Instance Method Details
#read ⇒ Object
167 168 169 |
# File 'lib/syncromesh.rb', line 167 def read render json: Syncromesh::SimplePoller.read(params[:subscriber]) end |
#subscribe ⇒ Object
163 164 165 |
# File 'lib/syncromesh.rb', line 163 def subscribe render json: {id: Syncromesh::SimplePoller.subscribe} end |