Skip to content

Commit 5d59ceb

Browse files
Update content/websockets/gateways.md
1 parent 1d4be04 commit 5d59ceb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

content/websockets/gateways.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,11 @@ Occasionally, you may want to have a direct access to the native, **platform-spe
241241
server: Server;
242242
```
243243

244-
Also, you can get namespace instance when you passed `namespace` option to `@WebSocketGateway()` decorator.
244+
Also, you can retrieve the corresponding namespace using the `namespace` attribute, as follows:
245245

246246
```typescript
247-
@WebSocketServer({ namespace: 'something' })
247+
@WebSocketServer({ namespace: 'my-namespace' })
248248
namespace: Namespace;
249-
```
250249

251250
> warning **Notice** The `@WebSocketServer()` decorator is imported from the `@nestjs/websockets` package.
252251

0 commit comments

Comments
 (0)