Install Redis Adapter Dependencies

Install the Socket.IO Redis adapter and the official Redis Node.js client.

We will use the redis package to connect to Redis.

The adapter package integrates Socket.IO with Redis Pub/Sub.

Install Redis Dependencies
npm install @socket.io/redis-adapter redis

Installs the official Socket.IO Redis adapter and the Redis Node.js client.

Key Takeaways
  • The Redis adapter is a separate package.

  • The Redis package provides the Node.js client.

  • Both dependencies are required for this integration.