Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
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
main.js
File · 0.85
constructor
Method · 0.85
socket.js
File · 0.85
todo.tests.ts
File · 0.85
constructor
Method · 0.85
index.js
File · 0.85
client.ts
File · 0.85
main.js
File · 0.85
main.js
File · 0.85
socket.js
File · 0.85
main.js
File · 0.85
main.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected