MCPcopy Index your code
hub / github.com/nodejs/node / start

Method start

test/common/websocket-server.js:22–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 }
21
22 start() {
23 return new Promise((resolve) => {
24 this.server.listen(this.port, () => {
25 this.port = this.server.address().port;
26 resolve();
27 });
28 }).catch((err) => {
29 console.error('Failed to start WebSocket server:', err);
30 });
31 }
32
33 handleUpgrade(req, socket, head) {
34 const key = req.headers['sec-websocket-key'];

Callers 14

testFunction · 0.95
RunMethod · 0.45
CheckCStyleCastFunction · 0.45
ExpandVariablesFunction · 0.45
replaceFunction · 0.45
test-wasi-stdio.jsFile · 0.45
startNewREPLServerFunction · 0.45

Calls 4

listenMethod · 0.80
resolveFunction · 0.70
addressMethod · 0.65
errorMethod · 0.45

Tested by 2

testFunction · 0.76
RunMethod · 0.36