ports property

JSArray<MessagePort> get ports

The ports read-only property of the MessageEvent interface is an array of MessagePort objects representing the ports associated with the channel the message is being sent through (where appropriate, e.g. in channel messaging or when sending a message to a shared worker).

Implementation

external JSArray<MessagePort> get ports;