Skip to content

Commit

Permalink
Merge pull request #3165 from TristanBasel/patch-1
Browse files Browse the repository at this point in the history
docs(websockets): update adapter.md to fix grammar
  • Loading branch information
kamilmysliwiec authored Dec 12, 2024
2 parents 9c01ccf + 5d1f2a8 commit b23a461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/websockets/adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ app.useWebSocketAdapter(redisIoAdapter);

#### Ws library

Another available adapter is a `WsAdapter` which in turn acts like a proxy between the framework and integrate blazing fast and thoroughly tested [ws](https://github.com/websockets/ws) library. This adapter is fully compatible with native browser WebSockets and is far faster than socket.io package. Unluckily, it has significantly fewer functionalities available out-of-the-box. In some cases, you may just don't necessarily need them though.
Another available adapter is a `WsAdapter` which in turn acts like a proxy between the framework and integrate blazing fast and thoroughly tested [ws](https://github.com/websockets/ws) library. This adapter is fully compatible with native browser WebSockets and is far faster than socket.io package. Unluckily, it has significantly fewer functionalities available out-of-the-box. In some cases, you don't necessarily need them though.

> info **Hint** `ws` library does not support namespaces (communication channels popularised by `socket.io`). However, to somehow mimic this feature, you can mount multiple `ws` servers on different paths (example: `@WebSocketGateway({{ '{' }} path: '/users' {{ '}' }})`).
Expand Down

0 comments on commit b23a461

Please sign in to comment.