else will be execute with:
"ws://example.com?name=value"
"ws://example.com"
"ws://example.com:8080"
"ws://example.com:8080?name=value"

Url without "/" may be invalid. Then it should be failed to connect.