I have a multi-tenant application with web socket that is original to use the Scope.Request for verifying the user in socket on connection, but how I can get the request for module
async handleConnection(socket: Socket) {
const contextId = ContextIdFactory.getByRequest(???);
const userService = await this.moduleRef.resolve(
UsersService,
contextId,
{ strict: false },
);
}
My users service
@Injectable({ scope: Scope.REQUEST })
export class UsersService {
}