Skip to content

Commit c7548c9

Browse files
committed
fix(sockets): remove duplicate listener and provide custom config of sockets
1 parent 55cb3cf commit c7548c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/templates/client/services/socket(sockets)/socket.service.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
angular.module('<%= appname %>')
44
.factory('Socket', function (socketFactory) {
55

6-
var socketConnect = io('', {
6+
var ioSocket = io('', {
77
path: '/socket.io'
8+
//, query: 'token=toto'
9+
// TODO implement with passport and socket jwt
810
});
911

10-
var socket = socketFactory({ socketConnect: socketConnect });
12+
var socket = socketFactory({ ioSocket: ioSocket });
1113

1214
function idMap (items) {
1315
return items.map(function (e) { return e._id; });

0 commit comments

Comments
 (0)