MCPcopy
hub / github.com/socketio/socket.io / prepare

Method prepare

packages/engine.io/lib/server.ts:762–768  ·  view source on GitHub ↗

* Prepares a request by processing the query string. * * @private

(req: EngineRequest)

Source from the content-addressed store, hash-verified

760 * @private
761 */
762 private prepare(req: EngineRequest) {
763 // try to leverage pre-existing `req._query` (e.g: from connect)
764 if (!req._query) {
765 const url = new URL(req.url, "https://socket.io");
766 req._query = Object.fromEntries(url.searchParams.entries());
767 }
768 }
769
770 protected createTransport(
771 transportName: TransportName,

Callers 5

handleRequestMethod · 0.95
handleUpgradeMethod · 0.95
server.jsFile · 0.45
openFunction · 0.45
server.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected