Member Junction
    Preparing search index...
    • Installs the single path-routing upgrade dispatcher. No-op when no extension routes are registered, so the GraphQL server keeps its own listener untouched. Otherwise it removes the auto-attached listeners (GraphQL's included) and dispatches every upgrade by pathname — GraphQL on graphqlPath, each extension socket on its registered path; unknown paths are destroyed.

      Parameters

      • httpServer: Server

        the shared HTTP server.

      • graphqlWss: IWebSocketUpgradeTarget

        the GraphQL subscriptions WebSocket server (kept, re-dispatched on its path).

      • graphqlPath: string

        the GraphQL root path (the path GraphQL's socket listens on).

      • OptionalpreUpgradeHandler: (req: IncomingMessage, socket: Duplex, head: Buffer) => boolean

        optional handler to try before routing to GraphQL or extension sockets.

      Returns void