angular socket factory wrapper for web sockets with express.io