Skip to content

Commit

Permalink
bugfix: fix WsAdapter close invokation issues nestjs#1156
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Oct 17, 2018
1 parent 6f18afc commit 64555bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/websockets/adapters/ws-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ export class WsAdapter implements WebSocketAdapter {
}
}

public close(server) {
isFunction(server.close) && server.close();
public close(server: any) {
server && isFunction(server.close) && server.close();
}

public bindErrorHandler(server) {
public bindErrorHandler(server: any) {
server.on(CONNECTION_EVENT, ws =>
ws.on(ERROR_EVENT, err => this.logger.error(err)),
);
Expand Down

0 comments on commit 64555bf

Please sign in to comment.