We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 697f560 commit d368bbeCopy full SHA for d368bbe
src/index.js
@@ -138,8 +138,8 @@ const headers = ripple => next => res => {
138
139
const io = opts => {
140
const r = !client ? require('socket.io')(opts.server || opts)
141
- : window.io ? window.io()
142
- : is.fn(require('socket.io-client')) ? require('socket.io-client')()
+ : window.io ? window.io({ transports: ['websocket', 'polling'] })
+ : is.fn(require('socket.io-client')) ? require('socket.io-client')({ transports: ['websocket', 'polling'] })
143
: { on: noop, emit: noop }
144
r.use = r.use || noop
145
return r
0 commit comments