pollAndProcess for realtime mode