hostname

external val hostname: String(source)

The hostname property of a WorkerLocation object returns the hostname part of the worker's location.

MDN Reference