Setting url for connect

I try to understand what I need to do to use a url parameter in the connect({url:...}) in my UI.

I start

hc run

and the bundle.toml does not include the UI. The UI runs on localhost.

It worked for me using connect({ url: "ws://127.0.0.1:50000" }). The port is the one listed as *** Bound interface.... to port: 50000