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

Function url

packages/socket.io-cluster-engine/test/util.ts:3–9  ·  view source on GitHub ↗
(port: number, sid?: string)

Source from the content-addressed store, hash-verified

1import expect = require("expect.js");
2
3export function url(port: number, sid?: string) {
4 let url = `http://localhost:${port}/engine.io/?EIO=4&transport=polling`;
5 if (sid) {
6 url += `&sid=${sid}`;
7 }
8 return url;
9}
10
11export async function handshake(port: number) {
12 const res = await fetch(url(port));

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected