Skip to content

Instantly share code, notes, and snippets.

Created Jan 20, 2011
What would you like to do?
def run {
opts = { query: {feed: 'continuous', since: update_seq, heartbeat: 5000, filter: 'app/pending', include_docs: true} }
http ="#{DB_URL}/_changes").get opts { |chunk| handle_notification(chunk) unless chunk =~ /^\n/ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment