add socket service to allow $scope within emit and on