According to this issue comment: https://github.com/nestjs/nest/issues/336#issuecomment-355300176
You can't apply filters to the connection handlers. You could instead, disconnect the client when authentication fails.