UNPKG

476 BTypeScriptView Raw
1/// <reference types="node" />
2import { Server, IncomingMessage, ServerResponse } from 'http';
3import { HttpRequestHandler } from '../../interfaces';
4export declare function enhanceHttpServerWithWebSockets<Request extends IncomingMessage = IncomingMessage, Response extends ServerResponse = ServerResponse>(websocketServer: Server, postgraphileMiddleware: HttpRequestHandler, subscriptionServerOptions?: {
5 keepAlive?: number;
6 graphqlRoute?: string;
7}): Promise<void>;