Skip to content

utils/connectionHostname ​

Overview ​

Derives the backend connection hostname from the current window location, optionally overriding the port via the VITE_DJANGO_CONNECTION_PORT environment variable.

Properties ​

connectionHostname ​

Type: string

Source: client/lib/utils/connectionHostname.js:27

httpOrHttpsHostname ​

Type: string

Source: client/lib/utils/connectionHostname.js:30

wsOrWssHostname ​

Type: string

Source: client/lib/utils/connectionHostname.js:33

Source ​

client/lib/utils/connectionHostname.js:1