Skip to content

Commit

Permalink
Merge branch 'merceyz/websockets-peer' of https://github.com/merceyz/…
Browse files Browse the repository at this point in the history
…nest into merceyz-merceyz/websockets-peer
  • Loading branch information
kamilmysliwiec committed Feb 2, 2021
2 parents 20cbe3f + 142b39e commit f57d1c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/websockets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"peerDependencies": {
"@nestjs/common": "^7.0.0",
"@nestjs/core": "^7.0.0",
"@nestjs/platform-socket.io": "^7.0.0",
"reflect-metadata": "^0.1.12",
"rxjs": "^6.0.0"
}
Expand Down
1 change: 1 addition & 0 deletions packages/websockets/socket-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export class SocketModule<HttpServer = any> {
const { IoAdapter } = loadAdapter(
'@nestjs/platform-socket.io',
'WebSockets',
() => require('@nestjs/platform-socket.io'),
);
const ioAdapter = new IoAdapter(this.httpServer);
this.applicationConfig.setIoAdapter(ioAdapter);
Expand Down

0 comments on commit f57d1c5

Please sign in to comment.