Skip to content

url_tools

Functions

FunctionDescription
buildEngineIoTargetBuilds target URL for Engine.IO proxy.
buildWsTargetConverts HTTP URL to WebSocket URL.
ensureHttpSchemeEnsures the string starts with http:// or https://.
ensureWsSchemeEnsures the string starts with ws:// or wss://.
hostPortExtracts host:port from URL.
normalizeProxyHostPortNormalizes proxy address to host:port format.