• Creates an http server instance that can be retrieved using getHttpServer function. Also registers provided websocketMiddlewares which can be retrieved using getWebsocketMiddlewares function. Useful when setting up GraphQL Subscriptions.

    Parameters

    • app: Application

      express app

    • Optional logger: Logger

      logger implementation

    • websocketMiddlewares: Middleware<Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, Response<any, Record<string, any>>>[] = []

      option array of web sockets middleware functions.

    Returns Server

Generated using TypeDoc