MCPcopy Index your code
hub / github.com/browserless/browserless / getRouteForWebSocketRequest

Method getRouteForWebSocketRequest

src/router.ts:385–389  ·  view source on GitHub ↗
(req: Request)

Source from the content-addressed store, hash-verified

383 }
384
385 public async getRouteForWebSocketRequest(req: Request) {
386 const { pathname } = req.parsed;
387
388 return this.webSocketRoutes.find((r) => this.routeMatches(r, pathname));
389 }
390
391 /**
392 * Implement any browserless-core-specific shutdown logic here.

Callers 1

handleWebSocketUnsafeMethod · 0.80

Calls 1

routeMatchesMethod · 0.95

Tested by

no test coverage detected