News for hackers. Stuff that matters.
Re:REST Hooks - Stop the polling madness by jqueryin on Tuesday September 10, 2013 @02:21PM (#6361959)
As I read through the website, I felt mislead by the title "REST Hooks - Stop the polling madness" in that I believed we were talking directly about reducing something like AJAX long polling for an alternative means of retrieving data from the backend.

Having felt that pain before, and not opting for WebSockets yet, I was hoping for some kind of simple alternative. I have a portion of code that occurs during a registration process that is currently polling the backend for status updates as to the worker queue's progress (it's a lengthy registration with several moving pieces and calls to multiple remote APIs).

Re:REST Hooks - Stop the polling madness by IanCal on Wednesday September 11, 2013 @03:22AM (#6365958)
Try playing with WebSockets, they're pretty easy to get going. Is there something about them keeping you away? Or would it require quite a re-architecture?
Re:REST Hooks - Stop the polling madness by jqueryin on Friday September 13, 2013 @01:16PM (#6381763)
There's a lack of browser support (IE10+, no Android), and the fallbacks drain your mobile battery. It's just not quite there. I've done full presentations on WebSockets and toyed/demoed with it for a number of trivial and less than trivial applications, so I would like to think I'm more informed than most.
Re:REST Hooks - Stop the polling madness by johnny22 on Wednesday September 11, 2013 @06:01AM (#6366327)
server sent events? although they are push only. I can't tell if you also want write capabilities