AngularJS with JWebSocket

74 views
Skip to first unread message

Christopher Gerloff

unread,
Oct 29, 2012, 3:19:23 AM10/29/12
to ang...@googlegroups.com
Good morning everybody, i have a little problem with nested controllers and JWebSocket. This is more a general problem with WebSockets and nested controllers than with JWebSocket i guess.
I am trying to implement some kind of app-structure in AngularJS. I got a main.html and within this file i include my different apps, each with its own controller and html-file. All apps communicate with a WebServer via JWebSocket. It is no problem to open the connection successfully.
The actual problem is, that messages from the WebServer don't get through to the actual app. This means i can't update the GUI because the callback methods are defined within the app-controller and not in the main-controller. The other direction works perfectly. If i manipulate the data model from the app-GUI the server recognizes it and updates the model. 
I know this description is very vague but maybe someone had a similar problem.

Christopher

Peter Bacon Darwin

unread,
Oct 29, 2012, 4:17:14 AM10/29/12
to ang...@googlegroups.com
A fiddle or plunker would help the discussion and speed up the process of helping you.


Christopher

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en.
 
 

Christopher Gerloff

unread,
Oct 29, 2012, 10:55:26 AM10/29/12
to ang...@googlegroups.com
Problem solved! It had nothing to do with the combination of Angular and JWebSocket. It was just a misuse of the JWebSocket library.
Reply all
Reply to author
Forward
0 new messages