MCPcopy
hub / github.com/socketio/socket.io / #createUrl

Method #createUrl

examples/basic-websocket-client/src/index.js:72–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 }
71
72 #createUrl() {
73 const uri = this.#uri.replace(/^http/, "ws");
74 const queryParams = "?EIO=4&transport=websocket";
75 return `${uri}${this.#opts.path}${queryParams}`;
76 }
77
78 #onMessage(data) {
79 if (typeof data !== "string") {

Callers 1

#openMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected