Skip to content
url_toolsFunctions

ensureWsScheme

String ensureWsScheme(String value)

Ensures the string starts with ws:// or wss://.

If scheme is missing, adds ws:// (or wss:// for port 443).