This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global io */ | |
'use strict'; | |
angular.module('testFullstackApp') | |
.factory('socket', function(socketFactory) { | |
// socket.io now auto-configures its connection when we ommit a connection url | |
var ioSocket = io('', { | |
// Send auth token on connection, you will need to DI the Auth service above | |
// 'query': 'token=' + Auth.getToken() |