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

Function io

examples/basic-websocket-client/src/index.js:267–273  ·  view source on GitHub ↗
(uri, opts)

Source from the content-addressed store, hash-verified

265}
266
267export function io(uri, opts) {
268 if (typeof uri !== "string") {
269 opts = uri;
270 uri = location.origin;
271 }
272 return new Socket(uri, opts);
273}

Callers 15

socket.tsFile · 0.85
connection.tsFile · 0.85
retry.tsFile · 0.85
no-unref.tsFile · 0.85
unref.tsFile · 0.85
main.jsFile · 0.85
client.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected