angular-socket-io
angular-socket-io copied to clipboard
Examples are incorrect missing var
Hi Brian, just to point out a missing var
factory('mySocket', function (socketFactory) {
var myIoSocket = io.connect('/some/path');
mySocket = socketFactory({
ioSocket: myIoSocket
});
return mySocket;
});
should be
factory('mySocket', function (socketFactory) {
var myIoSocket = io.connect('/some/path');
var mySocket = socketFactory({
ioSocket: myIoSocket
});
return mySocket;
});
my 2 cents :) bye
I have testing the example also, and.. Is not missing the "io" library?
I have the following error: ReferenceError: io is not defined
Forget about this, fixed :)
:thumbsup: