Add new angularJS controller.js for websocket. It will be responsible for webscoket connection and message send/receive.