port

external val port: String(source)

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

MDN Reference