port
property of the SharedWorker
interface returns a MessagePort
object used to communicate and control the shared worker.port2
read-only property of the MessageChannel
interface returns second port of the message channel, the port attached to the context at the other end of the channel, which the message is initially sent to.