port property

MessagePort get port

Returns sharedWorker's MessagePort object which can be used to communicate with the global environment.

MDN Reference

Implementation

_i3.MessagePort get port => _i4.getProperty(
      this,
      'port',
    );