[Feature Angular 1.3] Support for websockets
Would be great if Angular had an service that provides websockets support.
-1
I don't agree it should be available as a built-in "Core" service, the reasons were already mentioned. Don't get me wrong, I like WebSockets and I think it's great - but in my opinion, it doesn't fit as a core feature, not yet.
And as an external service, browsers support is still problematic and there are already good alternatives. I don't think we need it NOW.
-1
+1
-1
:-1:
I'd have to agree with @caitp that adding Websockets is too soon yet. And, with other libraries offering a much more comprehensive support, it would be just duplication of effort for Angular team to implement their own flavour (and that too, as you suggest, not fully...)
+1
+1
-1
-1
+1
There are already plenty of SockJS vs Socket.IO wars. There doesn't need to be a SockJS/Socket.IO/AngularJS-websockets war.
@linagee On the opposite, it is a good opportunity to take the best of both technologies and make The best product
Implementation-wise, there's no reason that something like this needs to live in core.
Still, I think having a good service/idiom for using websockets with Angular is worthwhile.
@jeffbcross has started a module called ngSocket that wraps websockets for Angular. I wrote angular-socket-io that wraps the popular Socket.IO library.
I think it'd be good to link to these in the docs under Complementary Libraries.
Does that seem like a reasonable resolution to everyone?
I would like to have some kind of first class support for all HTML* technologies and APIs. WebSockets, IndexedDB, requestAnimationFrame, etc. If you need external libraries is fine, but we need support on it.
Hope it can be affordable by your team.
Thanks!