Closed masalinas closed 8 years ago
I resolve the problem defining my socketfactory like this:
$provide.factory('Socket', function (socketFactory, Context) {
//return socketFactory();
var socket = io({transports: ['websocket', 'flashsocket', 'htmlfile', 'xhr-polling', 'jsonp-polling', 'polling']});
return socketFactory({ioSocket: socket});
});
How can use your controler and define my socket.io like this:
var socket = io({transports: ['websocket', 'flashsocket', 'htmlfile', 'xhr-polling', 'jsonp-polling', 'polling']});
Can I configure the socketFactory like this??? :
socketFactory({transports: ['websocket', 'flashsocket', 'htmlfile', 'xhr-polling', 'jsonp-polling', 'polling']}); ???