diff --git a/app/templates/client/components/socket(socketio)/socket.service(coffee).coffee b/app/templates/client/components/socket(socketio)/socket.service(coffee).coffee index 1cf7d19d0..630b9ef5f 100644 --- a/app/templates/client/components/socket(socketio)/socket.service(coffee).coffee +++ b/app/templates/client/components/socket(socketio)/socket.service(coffee).coffee @@ -6,7 +6,7 @@ angular.module '<%= scriptAppName %>' .factory 'socket', (socketFactory) -> # socket.io now auto-configures its connection when we omit a connection url - ioSocket = io null, + ioSocket = io '', 'reconnection limit': 10 * 1000 # Send auth token on connection, you will need to DI the Auth service above # 'query': 'token=' + Auth.getToken() diff --git a/app/templates/client/components/socket(socketio)/socket.service.js b/app/templates/client/components/socket(socketio)/socket.service.js index e22bd19c8..28a2448fd 100644 --- a/app/templates/client/components/socket(socketio)/socket.service.js +++ b/app/templates/client/components/socket(socketio)/socket.service.js @@ -5,7 +5,7 @@ angular.module('<%= scriptAppName %>') .factory('socket', function(socketFactory) { // socket.io now auto-configures its connection when we ommit a connection url - var ioSocket = io(null, { + var ioSocket = io('', { // Send auth token on connection, you will need to DI the Auth service above // 'query': 'token=' + Auth.getToken() });