UNPKG

@aimee-blue/ab-service-kit

Version:
10 lines (9 loc) 460 B
/// <reference types="node" /> import * as http from 'http'; import * as https from 'https'; import { IServiceConfig, ServiceDeps } from '../shared'; import { TeardownHandler } from '../shared/teardown'; import { getRegistry } from '../shared/sockets'; export declare function setupSockets<D>(server: http.Server | https.Server, config: IServiceConfig<D>, sharedDeps: ServiceDeps<D>, deps?: { getRegistry: typeof getRegistry; }): Promise<TeardownHandler>;