in bindings/xlb/src/index.ts [97:108]
export async function start(config: RecaptchaConfig, defaultPort: number, listeningListener?: () => void) {
const ctx = new XlbContext(config);
const routes = (router: ConnectRouter) => {
router.service(ExternalProcessor, new CalloutProcessor(ctx));
};
http2
.createServer(
connectNodeAdapter({ routes }), // responds with 404 for other requests
)
.listen(getPort(defaultPort), "0.0.0.0", listeningListener);
}