add polling as default transport in socket.io
This commit is contained in:
parent
ac491d10b0
commit
a70fd64442
4 changed files with 27 additions and 9 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue