AngularJS HTML5 WebSocket powerful directive