If I run the self hosted server, can I still connect to it using uplink?
I can see from in here :
/home/user/Documents/dev/myproject/.venv/lib/python3.12/site-packages/anvil/server.py
there is a url :
_url = 'wss://anvil.works/uplink'
and this function where I assume I can just send the URL as a parameter :
def connect(key, url='wss://anvil.works/uplink', quiet=False, init_session=None, extra_headers={}):
global _key, _url, _fatal_error, _quiet, _init_session, _get_extra_headers
if _key is not None and _key != key:
if not _quiet:
print("Disconnecting from previous connection first...")
disconnect()
_key = key
_url = url
_fatal_error = None # Reset because of reconnection attempt
_quiet = quiet
_init_session = init_session
_get_extra_headers = (lambda: extra_headers) if type(extra_headers) is dict else extra_headers
_get_connection()
is it as simple as just pointing that to a new location?
I haven’t tried it yet, so this is a bit of a lazy question, but I guess I want to make sure I’m barking up the right tree because even if it seems to work in testing there might be other implications.