def poll interval: 10, &block
      raise '#poll requires a block' unless block_given?

      response_id = 0

      loop do
        res = self.sync response_id

        if res
          response_id = res['rid']
          
          yield res
        end

        sleep interval
      end
    end
def poll interval: 10, &block
      raise '#poll requires a block' unless block_given?

      response_id = 0

      loop do
        res = self.sync response_id

        if res
          response_id = res['rid']
          
          yield res
        end

        sleep interval
      end
    end
Polls the client for incremental changes.

 @param interval Update interval in seconds.

 @yield [Hash] the return result of #sync.