add polling as default transport in socket.io

This commit is contained in:
Matias Alejo Garcia 2014-10-06 13:35:06 -03:00
commit a70fd64442
4 changed files with 27 additions and 9 deletions

View file

@ -42,6 +42,11 @@ var Insight = function(opts) {
'secure': opts.url.indexOf('https') === 0
};
if (opts.transports) {
this.opts['transports'] = opts.transports;
}
this.socket = this.getSocket();
}