Updating the angular mock to work with angular socket implementation