A wrapper for websockets that exposes them as angular.js services