Socket.io: TypeError: this.adapter.addAll is not a function

Created on 10 May 2017  路  2Comments  路  Source: socketio/socket.io

After socket.io update from 1.7.4 to 2.0.1 i am getting error

0|server   | TypeError: this.adapter.addAll is not a function
0|server   |     at Socket.join (/home/htdocs/socket/server/node_modules/socket.io/lib/socket.js:244:16)
0|server   |     at Socket.onconnect (/home/htdocs/socket/server/node_modules/socket.io/lib/socket.js:299:8)
0|server   |     at /home/htdocs/socket/server/node_modules/socket.io/lib/namespace.js:171:16
0|server   |     at _combinedTickCallback (internal/process/next_tick.js:73:7)
0|server   |     at process._tickDomainCallback (internal/process/next_tick.js:128:9)

my package.json is

"dependencies": {
    "file-type": "latest",
    "htmlspecialchars": "latest",
    "jsonwebtoken": "latest",
    "mysql": "latest",
    "pmx": "latest",
    "redis": "latest",
    "socket.io": "latest",
    "socket.io-redis": "latest",
    "twemoji": "latest"
  }

Found why, i am using socket.io-redis as adapter, and it's not having addAll method.

Most helpful comment

Please use socket.io-redis 5.0.0.

All 2 comments

Please use socket.io-redis 5.0.0.

I also have the same question, does the author solve the problem?

Was this page helpful?
0 / 5 - 0 ratings