Skip to content

Commit

Permalink
Update adapter.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jul 5, 2021
1 parent 3d4a791 commit 402302f
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 @@ -92,7 +92,7 @@ export class WsAdapter implements WebSocketAdapter {
constructor(private app: INestApplicationContext) {}

create(port: number, options: any = {}): any {
return new ws.Server({ port, ...options });
return new WebSocket.Server({ port, ...options });
}

bindClientConnect(server, callback: Function) {
Expand Down

0 comments on commit 402302f

Please sign in to comment.