Using Websockets in an AngularJS Application