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

Function uri

packages/engine.io-client/lib/transports/polling.ts:161–175  ·  view source on GitHub ↗

* Generates uri for connection. * * @private

()

Source from the content-addressed store, hash-verified

159 * @private
160 */
161 protected uri() {
162 const schema = this.opts.secure ? "https" : "http";
163 const query: { b64?: number; sid?: string } = this.query || {};
164
165 // cache busting is forced
166 if (false !== this.opts.timestampRequests) {
167 query[this.opts.timestampParam] = randomString();
168 }
169
170 if (!this.supportsBinary && !query.sid) {
171 query.b64 = 1;
172 }
173
174 return this.createUri(schema, query);
175 }
176
177 abstract doPoll();
178 abstract doWrite(data: string, callback: () => void);

Callers

nothing calls this directly

Calls 2

randomStringFunction · 0.90
createUriMethod · 0.80

Tested by

no test coverage detected