Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streams API support #2

Open
joeldev opened this issue Mar 17, 2013 · 16 comments
Open

Streams API support #2

joeldev opened this issue Mar 17, 2013 · 16 comments

Comments

@joeldev
Copy link
Owner

joeldev commented Mar 17, 2013

http://developers.app.net/docs/resources/stream/

@ghost
Copy link

ghost commented Mar 19, 2013

Yes, please.

@joeldev
Copy link
Owner Author

joeldev commented Mar 22, 2013

From berg: "before you go too far down the road on streaming API stuff, understand that it's not meant for client consumption (but there are different APIs comign soon for that...)"

May just wait until the APIs intended for client consumption go live. I'd rather not develop a whole component of the framework that I intend to throw out soon.

@tonyarnold
Copy link
Contributor

Has there been any more info on this from berg? I'm building something at the moment that would benefit greatly from Message streams (I think — I'm still getting my head around how this all pieces together).

@berg
Copy link
Collaborator

berg commented May 29, 2013

It's something we're actively working on now -- hoping to build a proof-of-concept using ADNKit soon. :)

@tonyarnold
Copy link
Contributor

Thanks @berg! Is there any way to interact with Streams manually at this stage, or is it all still behind the curtain?

@berg
Copy link
Collaborator

berg commented May 29, 2013

You can certainly consume streams on the server side, e.g., to hook them up to APNs. However, they are limited to app-wide usage only, and have significant state associated with turning them up and connecting to them, etc. There isn't a good way for you to consume a stream from an OS X or iOS app just yet.

@tonyarnold
Copy link
Contributor

Sounds like I'd be well served to wait for you guys to finish up before I start down this path.

@kolinkrewinkel
Copy link
Collaborator

@joeldev, should we put all of the calls to ADNKit which involve the semaphore on a serial queue (for user streams)?

@birarda
Copy link

birarda commented Jun 28, 2013

Is there an ETA on this - building a new app now and would love to keep all ADN communication via ADNKit, but want to use the new streams!

@joeldev
Copy link
Owner Author

joeldev commented Jun 28, 2013

It is currently being done on a branch (user-streams). You're welcome to check out that branch and try it out - we'd love feedback!

@tonyarnold
Copy link
Contributor

I've just checked out the user-streams branch, @joeldev but there's some odd dependencies in there (a customised version of SocketShuttle? It's using an init method that don't seem to exist…)

@kolinkrewinkel
Copy link
Collaborator

It's functioning (albeit not with much polish), but the bug I'm noticing right now is that after using a streaming-request (-requestStreamingUpdatesForOperation:), the operation queue seems to stop running operations, even though it's not suspended.

Somehow I get the sense it's related to my mutation of the request (which is not meant to be done.)

@tonyarnold
Copy link
Contributor

Guys, can I get a bit of direction as to what I feed into the AKNJSONRequestOperation parameter of -requestStreamingUpdateForOperation:withDelegate:? Not really sure how to get this to start streaming.

@kolinkrewinkel
Copy link
Collaborator

Supply a regular request that supports streaming, such as the user's current unified stream, into it. You'll get the regular endpoint response callback, as well as starting to receive streaming updates. As I said above, however, it will cause oddities with other requests that are performed down the line.

@ghost
Copy link

ghost commented Jul 7, 2013

So no ETA at this point? Development on Dot for Mac starts today, and I'd like to use as soon as possible. Great work though guys, I really like what I see :)

@kolinkrewinkel
Copy link
Collaborator

You can try it. It works, kind of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants