Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
267
export
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.ts
File · 0.85
connection.ts
File · 0.85
typed-events.test-d.ts
File · 0.85
retry.ts
File · 0.85
connection-state-recovery.ts
File · 0.85
no-unref.ts
File · 0.85
unref.ts
File · 0.85
unref-websocket-only.ts
File · 0.85
unref-polling-only.ts
File · 0.85
unref-during-reconnection.ts
File · 0.85
main.js
File · 0.85
client.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected