Skip to content

Commit

Permalink
Revert "fix(deps): bump socket-io to v3 (#3586)"
Browse files Browse the repository at this point in the history
This reverts commit 1b9e1de.
  • Loading branch information
johnjbarton committed Jan 11, 2021
1 parent 7e47e84 commit 09169af
Show file tree
Hide file tree
Showing 3 changed files with 276 additions and 95 deletions.
4 changes: 2 additions & 2 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ const EmitterWrapper = require('./emitter_wrapper')
const processWrapper = new EmitterWrapper(process)

function createSocketIoServer (webServer, executor, config) {
const server = new SocketIO.Server(webServer, {
const server = new SocketIO(webServer, {
// avoid destroying http upgrades from socket.io to get proxied websockets working
destroyUpgrade: false,
path: config.urlRoot + 'socket.io/',
transports: config.transports,
forceJSONP: config.forceJSONP,
// Default is 5000 in socket.io v2.x and v3.x.
// Default is 5000 in socket.io v2.x.
pingTimeout: config.pingTimeout || 5000
})

Expand Down
Loading

0 comments on commit 09169af

Please sign in to comment.