merged seperate socket.ios into one with different namespaces for chats and rooms. Set chat controller as a controller on the main angular app. removed ng-app directive from rooms.html chat-container div