UNPKG

1.32 kBTypeScriptView Raw
1import { InjectionToken } from '@nestjs/common/interfaces';
2import { Injectable } from '@nestjs/common/interfaces/injectable.interface';
3import { NestApplicationContextOptions } from '@nestjs/common/interfaces/nest-application-context-options.interface';
4import { ApplicationConfig } from '@nestjs/core/application-config';
5import { NestContainer } from '@nestjs/core/injector/container';
6import { InstanceWrapper } from '@nestjs/core/injector/instance-wrapper';
7import { GraphInspector } from '@nestjs/core/inspector/graph-inspector';
8export declare class SocketModule<THttpServer = any, TAppOptions extends NestApplicationContextOptions = NestApplicationContextOptions> {
9 private readonly socketsContainer;
10 private applicationConfig;
11 private webSocketsController;
12 private isAdapterInitialized;
13 private httpServer;
14 private appOptions;
15 register(container: NestContainer, applicationConfig: ApplicationConfig, graphInspector: GraphInspector, appOptions: TAppOptions, httpServer?: THttpServer): void;
16 connectAllGateways(providers: Map<InjectionToken, InstanceWrapper<Injectable>>, moduleName: string): void;
17 connectGatewayToServer(wrapper: InstanceWrapper<Injectable>, moduleName: string): void;
18 close(): Promise<any>;
19 private initializeAdapter;
20 private getContextCreator;
21}