AFMotion+Rocket
Use Rocket in RubyMotion
Usage
@client = AFMotion::... # create your client
@client.subscribe("http://myendpoint.com/updates") do |json_patch_operations|
json_patch_operations.each do |json_patch|
if json_patch['add']
@resources << json_patch['value']
else
# handle other cases
end
end
end
Install
-
gem install afmotion-rocket
-
require 'afmotion-rocket'
or add to yourGemfile
Contact
Clay Allsopp (http://clayallsopp.com)
License
AFMotion+Rocket is available under the MIT license. See the LICENSE file for more info.