Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/socketio/socket.io
/ sleep
Function
sleep
docs/socket.io-protocol/v5-test-suite/test-suite.js:16–18 ·
view source on GitHub ↗
(delay)
Source
from the content-addressed store, hash-verified
14
const
PING_TIMEOUT = 200;
15
16
function
sleep(delay) {
17
return
new
Promise((resolve) => setTimeout(resolve, delay));
18
}
19
20
function
createWebSocket(url) {
21
const
socket =
new
WebSocket(url);
Callers
1
test-suite.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected