diff --git a/docs/docs/05_considerations/02_compatibility.md b/docs/docs/05_considerations/02_compatibility.md index 8e7149aa..a9823109 100644 --- a/docs/docs/05_considerations/02_compatibility.md +++ b/docs/docs/05_considerations/02_compatibility.md @@ -56,3 +56,13 @@ Below are listed transports with which it is confirmed to work: ### Websockets _Websocket Gateways_ don't respect globally bound enhancers, therefore it is required to bind the `ClsGuard` or `ClsInterceptor` manually on the `WebsocketGateway`. Special care is also needed for the `handleConnection` method (See [#8](https://github.com/Papooch/nestjs-cls/issues/8)) + +```ts +@WebSocketGateway() +// highlight-start +@UseInterceptors(ClsInterceptor) +// highlight-end +export class Gateway { + // ... +} +``` diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 76ca7188..8f823324 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -100,6 +100,15 @@ const config = { footer: { style: 'dark', links: [ + { + title: 'Docs', + items: [ + { + label: 'NestJS Documentation', + href: 'https://docs.nestjs.com/', + }, + ], + }, { title: 'Community', items: [