the shared HTTP server.
the GraphQL subscriptions WebSocket server (kept, re-dispatched on its path).
the GraphQL root path (the path GraphQL's socket listens on).
OptionalpreUpgradeHandler: (req: IncomingMessage, socket: Duplex, head: Buffer) => booleanoptional handler to try before routing to GraphQL or extension sockets.
Installs the single path-routing
upgradedispatcher. 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 ongraphqlPath, each extension socket on its registered path; unknown paths are destroyed.