New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@knawat/advanced-client-module

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knawat/advanced-client-module

This is a Client Proxy providing module.

1.0.1
Version published
Maintainers
3
Created

Advanced NestJS Client Proxy Module

Sample usages

First import the package:

import { AdvancedClientModule } from '@knawat/advanced-client-module';

Async usage:

    AdvancedClientModule.registerAsync({
      imports: [ConfigModule],
      useFactory: (config: ConfigService) => {
        return {
          transport:
            config.get<string>('MC_TRANSPORTER_TYPE') ||
            config.get<string>('TRANSPORTER_TYPE') ||
            'TCP',
          options: config.get<string>('MC_TRANSPORTER')
            ? JSON.parse(config.get<string>('MC_TRANSPORTER'))
            : {
                url: config.get<string>('TRANSPORTER'),
              },
        };
      },
      inject: [ConfigService],
    }),

Sync usage:

    AdvancedClientModule.register({
        transport: 'TCP',
        options: {
          url: 'http://localhost:8080',
        },
    }),

FAQs

Package last updated on 20 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts