-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How about making configService available to RedisIoAdapter? #2785
Comments
At some point you will instantiate the
const app = await NestFactory.create(ApplicationModule);
const configService = app.get(ConfigService)
app.useWebSocketAdapter(new RedisIoAdapter(app, configService));
export class RedisIoAdapter extends IoAdapter {
constructor(app, private readonly configService: ConfigService) {
// Or simply get the ConfigService in here, since you have the `app` instance anyway
super(app);
}
...
} You can read more about |
Missed the way of application context. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature Request
How about making configService available to RedisIoAdapter?
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Teachability, Documentation, Adoption, Migration Strategy
How about inject adapter to module ???
What is the motivation / use case for changing the behavior?
The text was updated successfully, but these errors were encountered: