Skip to content

Commit

Permalink
docs: add usage with nest
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Jul 14, 2021
1 parent f480b14 commit d00c981
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions source/docs/v4/server-initialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ httpServer.listen(3000);

## Initialization

- [Standalone](#Standalone)
- [Attached to an existing HTTP server](#Attached-to-an-existing-HTTP-server)
- [With an HTTP server](#With-an-HTTP-server)
- [With an HTTPS server](#With-an-HTTPS-server)
- [With an HTTP/2 server](#With-an-HTTP-2-server)
- [With Express](#With-Express)
- [With Koa](#With-Koa)
- [With Nest](#With-Nest)

### Standalone

```js
Expand Down Expand Up @@ -171,6 +180,12 @@ httpServer.listen(3000);

More information [here](https://koajs.com/).

### With Nest

See the documentation [here](https://docs.nestjs.com/websockets/gateways).

Note: NestJS v7 and below relies on Socket.IO v2, while NestJS v8 relies on Socket.IO v4. Please use a [compatible client](/docs/v4/client-installation/#Version-compatibility).

## Options

- [Socket.IO server options](#Socket-IO-server-options)
Expand Down

0 comments on commit d00c981

Please sign in to comment.