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

Function handshake

packages/socket.io-cluster-engine/test/util.ts:11–17  ·  view source on GitHub ↗
(port: number)

Source from the content-addressed store, hash-verified

9}
10
11export async function handshake(port: number) {
12 const res = await fetch(url(port));
13 expect(res.status).to.eql(200);
14
15 const body1 = await res.text();
16 return JSON.parse(body1.substring(1)).sid;
17}

Callers 3

redis.tsFile · 0.90
in-memory.tsFile · 0.90
cluster.tsFile · 0.90

Calls 2

eqlMethod · 0.80
urlFunction · 0.70

Tested by

no test coverage detected