We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55cb3cf commit c7548c9Copy full SHA for c7548c9
app/templates/client/services/socket(sockets)/socket.service.js
@@ -3,11 +3,13 @@
3
angular.module('<%= appname %>')
4
.factory('Socket', function (socketFactory) {
5
6
- var socketConnect = io('', {
+ var ioSocket = io('', {
7
path: '/socket.io'
8
+ //, query: 'token=toto'
9
+ // TODO implement with passport and socket jwt
10
});
11
- var socket = socketFactory({ socketConnect: socketConnect });
12
+ var socket = socketFactory({ ioSocket: ioSocket });
13
14
function idMap (items) {
15
return items.map(function (e) { return e._id; });
0 commit comments