Skip to content

Commit 70301e8

Browse files
committed
Merge pull request angular-fullstack#435 from gregwym/master
fix(gen:app:socket): use `''` instead `null` as URL to open ioSocket
2 parents f5ca531 + 0f0d0fd commit 70301e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: app/templates/client/components/socket(socketio)/socket.service(coffee).coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ angular.module '<%= scriptAppName %>'
66
.factory 'socket', (socketFactory) ->
77

88
# socket.io now auto-configures its connection when we omit a connection url
9-
ioSocket = io null,
9+
ioSocket = io '',
1010
'reconnection limit': 10 * 1000
1111
# Send auth token on connection, you will need to DI the Auth service above
1212
# 'query': 'token=' + Auth.getToken()

Diff for: app/templates/client/components/socket(socketio)/socket.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ angular.module('<%= scriptAppName %>')
55
.factory('socket', function(socketFactory) {
66

77
// socket.io now auto-configures its connection when we ommit a connection url
8-
var ioSocket = io(null, {
8+
var ioSocket = io('', {
99
// Send auth token on connection, you will need to DI the Auth service above
1010
// 'query': 'token=' + Auth.getToken()
1111
});

0 commit comments

Comments
 (0)