Skip to content

Commit 46c50bc

Browse files
committed
docs(websockets): update
1 parent f373642 commit 46c50bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/websockets/adapter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The WebSockets module is platform-agnostic, hence, you can bring your own librar
3030
The [socket.io](https://github.com/socketio/socket.io) package is wrapped in an `IoAdapter` class. What if you would like to enhance the basic functionality of the adapter? For instance, your technical requirements require a capability to broadcast events across multiple load-balanced instances of your web service. For this, you can extend `IoAdapter` and override a single method which responsibility is to instantiate new socket.io servers. But first of all, let's install the required package.
3131

3232
```bash
33-
$ npm i --save @socket.io/redis-adapter
33+
$ npm i --save redis socket.io @socket.io/redis-adapter
3434
```
3535

3636
Once the package is installed, we can create a `RedisIoAdapter` class.

0 commit comments

Comments
 (0)