hi ! if you got it working in a javascript object all you should do is to put it in a service and using promise for server result. (i used this code and it was working perfectly whith a java server.)
see you later. Le mardi 2 septembre 2014 12:52:30 UTC+2, [email protected] a écrit : > > Hello All, > > I want to use websockets in my AngularJS app so after a bit of a hunt I > came across this http://clintberry.com/2013/angular-js-websocket-service/. > > I have followed the tutorial but the WebSocket is never opened and my > onclose reports it was forcibly closed (1006). If I use JavaScript code I > can successfully open the connection. So I was wondering if anyone had > managed to use Clint's code to implement web sockets and if so would they > be able to help me out here. > > The WS Server was written by me in C++ and works as expected when using > JavaScript, but I would prefer to do it 'the Angular way'. > > I would appreciate any help that was on offer. > > -- > Bill > > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
